GPass -> BaseGPass

When developing a new pass, it’s recommended to extend this class rather then implementing the GPass interface directly.

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

protected applyLayers(camera: Camera | null)

Implementation for applying object layers. Provided for extending types.

Returns: void

clear

protected clear(renderer: WebGLRenderer)

Implementation for clearing render targets. Provided for extending types.

Parameters:

Returns: void

enableLayer

enableLayer(layer: ObjectLayers, value: boolean): void

Enabled/disables specific object layers on the pass.

Parameters:

  • layer: The ObjectLayers to enable/disable
  • value: The value to enable/disable the layer

Returns: void