Class DepthPeelingRenderer
Hierarchy
- DepthPeelingRenderer
Index
Constructors
Accessors
Methods
Constructors
constructor
Instanciates the depth peeling renderer
Parameters
scene: Scene
Scene to attach to
Optional passCount: number
Number of depth layers to peel
Returns DepthPeelingRenderer
The depth peeling renderer
Accessors
pass Count
Number of depth peeling passes. As we are using dual depth peeling, each pass two levels of transparency are processed.
Returns number
Number of depth peeling passes. As we are using dual depth peeling, each pass two levels of transparency are processed.
Parameters
count: number
Returns void
use Render Passes
Instructs the renderer to use render passes. It is an optimization that makes the rendering faster for some engines (like WebGPU) but that consumes more memory, so it is disabled by default.
Returns boolean
Instructs the renderer to use render passes. It is an optimization that makes the rendering faster for some engines (like WebGPU) but that consumes more memory, so it is disabled by default.
Parameters
usePasses: boolean
Returns void
Methods
add Excluded MeshSearch playground for addExcludedMesh
Add a mesh in the exclusion list to prevent it to be handled by the depth peeling renderer
Parameters
mesh: AbstractMesh
The mesh to exclude from the depth peeling renderer
Returns void
bindSearch playground for bind
Binds depth peeling textures on an effect
Parameters
effect: Effect
The effect to bind textures on
Returns void
disposeSearch playground for dispose
Disposes the depth peeling renderer and associated ressources
Returns void
is ReadySearch playground for isReady
Checks if the depth peeling renderer is ready to render transparent meshes
Returns boolean
true if the depth peeling renderer is ready to render the transparent meshes
remove Excluded MeshSearch playground for removeExcludedMesh
Remove a mesh from the exclusion list of the depth peeling renderer
Parameters
mesh: AbstractMesh
The mesh to remove
Returns void
renderSearch playground for render
Renders transparent submeshes with depth peeling
Parameters
transparentSubMeshes: SmartArray<SubMesh>
List of transparent meshes to render
Returns SmartArray<SubMesh>
The array of submeshes that could not be handled by this renderer
set Pre Pass RendererSearch playground for setPrePassRenderer
Links to the prepass renderer
Parameters
prePassRenderer: PrePassRenderer
The scene PrePassRenderer
Returns void
The depth peeling renderer that performs Order independant transparency (OIT). This should not be instanciated directly, as it is part of a scene component