42 #ifndef vtkDepthPeelingPass_h
43 #define vtkDepthPeelingPass_h
45 #include "vtkRenderingOpenGLModule.h"
49 class vtkDepthPeelingPassLayerList;
94 vtkSetClampMacro(OcclusionRatio,
double,0.0,0.5);
95 vtkGetMacro(OcclusionRatio,
double);
105 vtkGetMacro(MaximumNumberOfPeels,
int);
113 vtkGetMacro(LastRenderingUsedDepthPeeling,
bool);
Implement an Order Independent Transparency render pass.
void CheckCompilation(unsigned int fragmentShader)
Check the compilation status of some fragment shader source.
virtual void SetTranslucentPass(vtkRenderPass *translucentPass)
int DepthPeelingHigherLayer
unsigned int OpaqueLayerZ
vtkDepthPeelingPass()
Is rendering at translucent geometry stage using depth peeling and rendering a layer other than the f...
int RenderPeel(const vtkRenderState *s, int layer)
Render a peel layer.
int MaximumNumberOfPeels
In case of depth peeling, define the maximum number of peeling layers.
double OcclusionRatio
In case of use of depth peeling technique for rendering translucent material, define the threshold un...
static vtkDepthPeelingPass * New()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int ViewportX
Cache viewport values for depth peeling.
void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
virtual ~vtkDepthPeelingPass()
Destructor.
virtual void Render(const vtkRenderState *s)
Perform rendering according to a render state s.
vtkRenderPass * TranslucentPass
void CheckSupport(vtkOpenGLRenderWindow *w)
Check if depth peeling is supported by the current OpenGL context.
bool LastRenderingUsedDepthPeeling
unsigned int TransparentLayerZ
vtkDepthPeelingPassLayerList * LayerList
Used by the depth peeling technique to store the transparency layers.
unsigned int DepthFormat
Actual depth format: vtkgl::DEPTH_COMPONENT16_ARB or vtkgl::DEPTH_COMPONENT24_ARB.
a simple class to control print indentation
Perform part of the rendering of a vtkRenderer.
Context in which a vtkRenderPass will render.
record modification and/or execution time
window superclass for vtkRenderWindow
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.