OpenGL Volumizer 2.7 Reference Pages


NAME
vzTMTangentSpaceShader - Shader for volume rendering 3D textures with lookup tables and gradientless lighting.

INHERITS FROM
vzShader

HEADER FILE
#include <Volumizer2/TMTangentSpaceShader.h>

PUBLIC METHOD SUMMARY
vzTMTangentSpaceShader (  );

PROTECTED METHOD SUMMARY
virtual ~vzTMTangentSpaceShader (  );

CLASS DESCRIPTION
The vzTMTangentSpaceShader is a built-in shader to be used with the vzTMRenderAction. This shader implements a gradientless-shading algorithm to provide volumetric lighting. The given volume texture is rendered with an infinite directional light source. The shader also uses texture lookup tables to modulate the output color values.

The shader uses a two-pass algorithm to approximate the dot product of the gradient vector with the light vector, at each point within the volume. This dot product is then used to modulate the texture values during rendering. For details, refer to Peercy et.al, 'Efficient Bump Mapping Hardware', Computer Graphics, Proc. SIGGRAPH '97.

PARAMETERS
The shader expects three parameters:


METHOD DESCRIPTIONS

   vzTMTangentSpaceShader()
vzTMTangentSpaceShader (  );

Constructor.

   ~vzTMTangentSpaceShader()
virtual ~vzTMTangentSpaceShader (  );

Destructor.

SEE ALSO
vzParameterLookupTable, vzParameterVec3f, vzParameterVolumeTexture, vzShader, vzTMRenderAction

Back to Index