User Tools

Site Tools


01_user_documentation:05_object:02_light:12_shaders:07_algorithm_switch_shader

Algorithm Switch Shader

The AlgorithmSwitchShader allows the definition of different shaders used for different purposes depending on the actual used algorithm, namely raytracing, visualization, light modelling. The the two defined constructor of the AlgorithmSwitchShader class ether allow to define a different shader for visualization, raytracing, and radiation (light modelling), or just for visualization, and radiation.

  • public AlgorithmSwitchShader (Shader guiShader, Shader raytracerShader, Shader radiationShader)
  • public AlgorithmSwitchShader (Shader guiShader, Shader radiationShader)

Personal note: I nearly never use the AlgorithmSwitchShader within larger simulations where the model runs several hours. If there are not intermediate rendered images generated, there is no real need to update the visualization, so instead, I only use the radiation shader during the whole simulation and only change the gui shader to generate nice looking images once.

01_user_documentation/05_object/02_light/12_shaders/07_algorithm_switch_shader.txt ยท Last modified: (external edit)