29 #ifndef __SHADOWCASTERSHADER_H__
30 #define __SHADOWCASTERSHADER_H__
48 namespace ShadowCasterShaders {
54 bool single_pass_stereo,
55 float matrixViewShift,
56 float matrixProjShift);
Header file for ComposedShader, X3D scene-graph node.
bool setPointLightPosition(const Vec3f &pos)
Set the point light position in the shader (only valid for geometry shader version of shader).
Definition: ShadowCasterShaders.cpp:874
bool setDirectionalLightDir(const Vec3f &dir)
Set the directional light direction in the shader (only valid for geometry shader version of shader).
Definition: ShadowCasterShaders.cpp:867
void shaderClean()
Disable the shader and clean up any other settings made by it.
Definition: ShadowCasterShaders.cpp:836
void 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.
Definition: ShadowCasterShaders.cpp:683
void shaderToggle(bool on)
Enable/disable the shader currently in use.
Definition: ShadowCasterShaders.cpp:881
bool setTransformMatrix(const Matrix4f &m)
Set the transform matrix for the shadow relative to the graphics object in the shader.
Definition: ShadowCasterShaders.cpp:850
H3D API namespace.
Definition: Anchor.h:38