float VVizGetLuminance(VVIZ_DATATYPE data)
Compute the luminance of a voxel value.
void VVizComputeLightingVectorsOrtho()
Same as VVizComputeLightingVectors but with an orthographic camera.
void VVizComputeBackSliceTexCoordPerspective()
vec4 VVizTextureLod(sampler3D tex, vec3 tcoord, float mipLevel)
Helper function to fetch a texel at a specific LOD.
void VVizComputeFrontSliceTexCoord()
Puts the texture coordinates of the front slice into gl_TexCoord[0].
void VVizComputeBackSliceTexCoordOrtho()
Same as VVizComputeBackSliceTexCoord but with an orthographic camera.
void VVizComputeLightingVectors()
Computes the following lighting vectors:
void VVizComputeLightingVectorsOrthoNoMultiVolume()
void VVizComputeBackSliceTexCoord()
Puts the texture coordinates of the back slice into gl_TexCoord[1].
void VVizComputeLightingVectorsOrthoMultiVolume()
vec3 VVizTexGenVol(vec4 vert)
Computes object linear texture coordinates using planes defined by VolumeViz in texture unit 1.
void VVizComputeTangentToEyeSpaceMatrix()
This function must be called in your vertex main function if you are using bump mapping node.
void VVizComputeLightingVectorsMultiVolume()
void VVizComputeLightingVectorsNoMultiVolume()
void VVizOIV6VertexCompatibility()
Set VVizVertex to gl_Vertex for compatibility with OIV6.
vec4 VVizGenerateVertex()
Returns the current vertex being processed.
void VVizComputeLightingVectorsPerspective()
vec3 VVizTexGen(vec4 vert)
Computes object linear texture coordinates using planes defined by VolumeViz in texture unit 0.
vec3 VVizComputeViewDir()