H3D API  2.4.1
Namespaces | Functions
ShadowCasterShaders.h File Reference

Header file for ShadowCasterShaders namespace. More...

#include <H3D/ComposedShader.h>

Go to the source code of this file.

Namespaces

 H3D
 H3D API namespace.
 
 H3D::ShadowCasterShaders
 Functions for use by the ShadowCaster node to generate a shader to use for shader volume rendering depending on different options.
 

Functions

void H3D::ShadowCasterShaders::shaderInit (bool cpu_shadows, bool draw_caps, bool is_dir_light, bool single_pass_stereo, float matrixViewShift, float matrixProjShift)
 Initialize and enable a shader for the given properties for use in a ShadowCaster node.
 
void H3D::ShadowCasterShaders::shaderToggle (bool on)
 Enable/disable the shader currently in use.
 
void H3D::ShadowCasterShaders::shaderClean ()
 Disable the shader and clean up any other settings made by it.
 
bool H3D::ShadowCasterShaders::setPointLightPosition (const Vec3f &pos)
 Set the point light position in the shader (only valid for geometry shader version of shader). More...
 
bool H3D::ShadowCasterShaders::setDirectionalLightDir (const Vec3f &dir)
 Set the directional light direction in the shader (only valid for geometry shader version of shader). More...
 
bool H3D::ShadowCasterShaders::setTransformMatrix (const Matrix4f &m)
 Set the transform matrix for the shadow relative to the graphics object in the shader. More...
 

Detailed Description

Header file for ShadowCasterShaders namespace.