44 #ifndef vtkShadowMapPass_h
45 #define vtkShadowMapPass_h
47 #include "vtkRenderingOpenGL2Module.h"
57 class vtkShadowMapPassTextures;
58 class vtkShadowMapPassLightCameras;
109 return this->ShadowTransforms; }
117 return this->ShadowTextureUnits; }
129 return this->FragmentDeclaration; }
131 return this->FragmentImplementation; }
166 vtkShadowMapPassTextures *ShadowMaps;
167 vtkShadowMapPassLightCameras *LightCameras;
a virtual camera for 3D rendering
internal class which encapsulates OpenGL frame buffer object.
a simple class to control print indentation
a virtual light for 3D rendering
Perform part of the rendering of a vtkRenderer.
Context in which a vtkRenderPass will render.
The ShaderProgram uses one or more Shader objects.
Implement a builder of shadow map pass.
Implement a shadow mapping render pass.
std::vector< int > ShadowTextureUnits
std::vector< float > ShadowAttenuation
virtual ~vtkShadowMapPass()
Destructor.
std::vector< double > ShadowMapTransforms()
get the matricies for all the shadow maps.
std::string FragmentDeclaration
void SetUniforms(vtkShaderProgram *program)
A mapper can call this to set the uniforms that this pass uses.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkInformationObjectBaseKey * ShadowMapPass()
this key will contain the shadow map pass
void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
virtual void Render(const vtkRenderState *s)
Perform rendering according to a render state s.
std::string FragmentImplementation
vtkRenderPass * OpaqueSequence
virtual void SetOpaqueSequence(vtkRenderPass *opaqueSequence)
void CheckSupport(vtkOpenGLRenderWindow *w)
Check if shadow mapping is supported by the current OpenGL context.
virtual void SetShadowMapBakerPass(vtkShadowMapBakerPass *shadowMapBakerPass)
std::string GetFragmentDeclaration()
Get the shader code to compute light factors based on a mappers vertexVC variable.
std::vector< int > GetShadowMapTextureUnits()
get the texture units for the shadow maps for each light.
std::vector< double > ShadowTransforms
std::string GetFragmentImplementation()
static vtkShadowMapPass * New()
vtkShadowMapPass()
Default constructor.
record modification and/or execution time
window superclass for vtkRenderWindow