41#ifndef vtkShadowMapPass_h
42#define vtkShadowMapPass_h
44#include "vtkRenderingOpenGL2Module.h"
54class vtkShadowMapPassTextures;
55class vtkShadowMapPassLightCameras;
106 return this->ShadowTransforms; }
114 return this->ShadowTextureUnits; }
126 return this->FragmentDeclaration; }
128 return this->FragmentImplementation; }
163 vtkShadowMapPassTextures *ShadowMaps;
164 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::string FragmentDeclaration
static vtkShadowMapPass * New()
void SetUniforms(vtkShaderProgram *program)
A mapper can call this to set the uniforms that this pass uses.
std::vector< int > GetShadowMapTextureUnits()
get the texture units for the shadow maps for each light.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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)
static vtkInformationObjectBaseKey * ShadowMapPass()
this key will contain the shadow map pass
std::string GetFragmentDeclaration()
Get the shader code to compute light factors based on a mappers vertexVC variable.
std::vector< double > ShadowTransforms
std::vector< double > ShadowMapTransforms()
get the matricies for all the shadow maps.
std::string GetFragmentImplementation()
vtkShadowMapPass()
Default constructor.
record modification and/or execution time
window superclass for vtkRenderWindow