# BaseGPass
Abstract base class which contains most of the basic common implementation for most passes. When developing a new pass, it's recommended to extend this class rather then implementing the GPass
interface directly.
WARNING
BaseGPAss
implements almosts all GPass members however the render
function is declared as abstract
so extending implementations will need to implement it themselves
# Methods
applyLayer | clear | enableLayer |
---|
# Methods
# applyLayer
protected applyLayers(camera: Camera | null)
1
Implementation for applying object layers. Provided for extending types
Returns: void
# clear
protected clear(renderer: WebGLRenderer)
1
Implementation for clearing render targets. Provided for extending types
Parameters
- renderer: The hosting WebGLRenderer (opens new window)
Returns: void
# enableLayer
enableLayer(layer: ObjectLayers, value: boolean): void
1
Enabled/disables specific object layers on the pass
Parameters
- layer: The ObjectLayers to enable/disable
- value: boolean_
Returns: void