VolumeViz GLSL tessellation shaders API. More...
Functions | |
vec3 | VVizTessVertexShift (in vec3 position, in vec2 texCoord) |
vec3 VVizTessVertexShift | ( | in vec3 | position, | |
in vec2 | texCoord | |||
) |
SoVolumeShader::TESS_VERTEX_SHIFT function.
This function can be redefined by the application to modify each vertex position during HeightField rendering. It is associated with the SoVolumeShader::TESS_VERTEX_SHIFT shader stage. By default, the input position is returned.
The SoVolumeShader::TESS_VERTEX_SHIFT shader stage must be set with an SoTessellationEvaluationShader, but this function will also be called by the tessellation control stage and the fragment stage, so the shader code must only use the GLSL API that is common to those 3 stages.
position | Vertex position on the HeightField surface in model space: XY in [-1, 1] and Z is the data set value, normalized for integer types (see SoHeightFieldRender). | |
texCoord | 2D Texture coordinate assiciated with the 3D position. |