# ProgressiveGPass
Base abstract class for all passes that need to converge/accumulate over more than one frame.
# Accessors
accumulationFrames | frameIndex |
---|
# Methods
render |
---|
# Accessors
# accumulationFrames
get accumulationFrames(): number
set accumulationFrames(value: number)
1
2
2
Gets or sets the total number of frames the pass needs to converge/accumulate in.
Returns: number
# frameIndex
get frameIndex(): number
set frameIndex(value: number)
1
2
2
Gets or sets the frame index in the current convergence/accumulation cycle.
Returns: number
# Methods
# render
render(
renderer: WebGLRenderer,
camera?: PerspectiveCamera | OrthographicCamera | null,
scene?: Scene
): boolean
1
2
3
4
5
2
3
4
5
Implementation for the base class abstract render
which automatically returns true
while frameIndex < accumulationFrames
, and false
otherwise
Parameters
- renderer: The hosting WebGLRenderer (opens new window)
- optional camera: Rendering camera
- optional scene: Scene that needs to be rendered
Returns: boolean