Go to the documentation of this file.
44 #ifndef vtkShadowMapBakerPass_h
45 #define vtkShadowMapBakerPass_h
47 #include "vtkRenderingOpenGL2Module.h"
107 vtkSetMacro(Resolution,
unsigned int);
108 vtkGetMacro(Resolution,
unsigned int);
std::vector< vtkSmartPointer< vtkTextureObject > > * ShadowMaps
virtual void SetCompositeZPass(vtkRenderPass *compositeZPass)
a virtual light for 3D rendering
std::vector< vtkSmartPointer< vtkTextureObject > > * GetShadowMaps()
INTERNAL USE ONLY Internally used by vtkShadowMapBakerPass and vtkShadowMapPass.
bool GetNeedUpdate()
INTERNAL USE ONLY.
vtkShadowMapBakerPass()
Default constructor.
record modification and/or execution time
void CheckSupport(vtkOpenGLRenderWindow *w)
Check if shadow mapping is supported by the current OpenGL context.
Internal class which encapsulates OpenGL FramebufferObject.
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
std::vector< vtkSmartPointer< vtkCamera > > * LightCameras
void BuildCameraLight(vtkLight *light, double *boundingBox, vtkCamera *lcamera)
Build a camera from spot light parameters.
window superclass for vtkRenderWindow
bool PreReplaceShaderValues(std::string &vertexShader, std::string &geometryShader, std::string &fragmentShader, vtkAbstractMapper *mapper, vtkProp *prop) override
Use vtkShaderProgram::Substitute to replace //VTK::XXX:YYY declarations in the shader sources.
std::vector< vtkSmartPointer< vtkCamera > > * GetLightCameras()
INTERNAL USE ONLY.
~vtkShadowMapBakerPass() override
Destructor.
vtkRenderPass * CompositeZPass
vtkTimeStamp LastRenderTime
void PointNearFar(double *v, double *pt, double *dir, double &mNear, double &mFar, bool initialized)
Helper method to compute the mNearest point in a given direction.
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
The ShaderProgram uses one or more Shader objects.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool GetHasShadows()
INTERNAL USE ONLY.
a simple class to control print indentation
abstracts an OpenGL texture object.
bool SetShaderParameters(vtkShaderProgram *program, vtkAbstractMapper *mapper, vtkProp *prop, vtkOpenGLVertexArrayObject *VAO=nullptr) override
Update the uniforms of the shader program.
a virtual camera for 3D rendering
abstract superclass for all actors, volumes and annotations
static vtkShadowMapBakerPass * New()
vtkRenderPass * OpaqueSequence
Abstract render pass with shader modifications.
Context in which a vtkRenderPass will render.
bool LightCreatesShadow(vtkLight *l)
INTERNAL USE ONLY.
virtual void SetOpaqueSequence(vtkRenderPass *opaqueSequence)
The VertexArrayObject class uses, or emulates, vertex array objects.
Implement a builder of shadow map pass.
void BoxNearFar(double *bb, double *pt, double *dir, double &mNear, double &mFar)
Compute the min/max of the projection of a box in a given direction.
abstract class specifies interface to map data
Perform part of the rendering of a vtkRenderer.