Simple Shader

VolumeViz Demonstrates how to create and use a simple volume shader.

The fragment shader program shown in this example is not exactly the same as the default VolumeViz shader, but it is functionally equivalent. Please notice that, by default, the shader source lines are supplied as string data compiled into the application program. Defining the macro USE_SHADER_FILE can force the program to load the shader out of a source file stored on the disk.

Also, please have a look to the well documented simpleShader.glsl code to get more information.

FILES:

SEE ALSO

SoFragmentShader, SoVolumeShader

SCREENSHOT:


Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/