Tessellation shaders
[VolumeViz Shader API]

VolumeViz VolumeViz GLSL tessellation shaders API. More...

Functions

vec3 VVizTessVertexShift (in vec3 position, in vec2 texCoord)

Detailed Description

VolumeViz VolumeViz GLSL tessellation shaders API.


Function Documentation

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.

Parameters:
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.
Returns:
The new vertex position in model space.

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