Go to the documentation of this file.
44 #ifndef vtkShadowMapPass_h
45 #define vtkShadowMapPass_h
47 #include "vtkRenderingOpenGL2Module.h"
56 class vtkFrameBufferObject;
57 class vtkShadowMapPassTextures;
58 class vtkShadowMapPassLightCameras;
91 virtual void SetShadowMapBakerPass(
101 virtual void SetOpaqueSequence(
vtkRenderPass *opaqueSequence);
109 return this->ShadowTransforms; }
117 return this->ShadowTextureUnits; }
129 return this->FragmentDeclaration; }
131 return this->FragmentImplementation; }
181 void BuildShaderCode();
vtkRenderPass * OpaqueSequence
a virtual light for 3D rendering
virtual void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
record modification and/or execution time
vtkShadowMapPassTextures * ShadowMaps
virtual bool PreReplaceShaderValues(std::string &vertexShader, std::string &geometryShader, std::string &fragmentShader, vtkAbstractMapper *mapper, vtkProp *prop)
Use vtkShaderProgram::Substitute to replace //VTK::XXX:YYY declarations in the shader sources.
std::vector< int > ShadowTextureUnits
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
std::string FragmentImplementation
std::vector< double > ShadowMapTransforms()
get the matricies for all the shadow maps.
std::string GetFragmentImplementation()
Implement a shadow mapping render pass.
window superclass for vtkRenderWindow
virtual bool SetShaderParameters(vtkShaderProgram *program, vtkAbstractMapper *mapper, vtkProp *prop, vtkOpenGLVertexArrayObject *VAO=nullptr)
Update the uniforms of the shader program.
std::string FragmentDeclaration
vtkTimeStamp LastRenderTime
The ShaderProgram uses one or more Shader objects.
a simple class to control print indentation
a virtual camera for 3D rendering
vtkShadowMapBakerPass * ShadowMapBakerPass
virtual bool PostReplaceShaderValues(std::string &vertexShader, std::string &geometryShader, std::string &fragmentShader, vtkAbstractMapper *mapper, vtkProp *prop)
Use vtkShaderProgram::Substitute to replace //VTK::XXX:YYY declarations in the shader sources.
vtkRenderPass * CompositeRGBAPass
std::string GetFragmentDeclaration()
Get the shader code to compute light factors based on a mappers vertexVC variable.
abstract superclass for all actors, volumes and annotations
std::vector< int > ShadowParallel
Abstract render pass with shader modifications.
vtkShadowMapPassLightCameras * LightCameras
vtkFrameBufferObject * FrameBufferObject
Graphics resources.
Context in which a vtkRenderPass will render.
std::vector< float > ShadowAttenuation
std::vector< int > GetShadowMapTextureUnits()
get the texture units for the shadow maps for each light.
std::vector< double > ShadowTransforms
The VertexArrayObject class uses, or emulates, vertex array objects.
Implement a builder of shadow map pass.
abstract class specifies interface to map data
Perform part of the rendering of a vtkRenderer.