Class: GpuStateSystem

GpuStateSystem

System plugin to the renderer to manage WebGL state machines.

Implements

Members

blendMode BLEND_MODES readonly

Blend mode

Default Value:
  • 'none'

polygonOffset number readonly

Polygon offset

stateId number readonly

State ID

_blendEq boolean protected

Whether current blend equation is different

defaultState State protectedreadonly

Default WebGL State

gpu WebGLRenderingContext protectedreadonly

GL context

Methods

getColorTargets (state) GPUColorTargetState[]

Gets the blend mode data for the current state

Name Type Description
state State

The state to get the blend mode from

Returns:
Type Description
GPUColorTargetState[]