Class: State

State

This is a webGL state. It is passed The WebGL StateManager. Each mesh renderered may require webGL to be in a different state. For example you may want different blend mode or to enable polygon offsets

Members

blendboolean

Activates blending of the computed fragment color values

clockwiseFrontFaceboolean

Specifies whether or not front or back-facing polygons can be culled.

Default Value:
  • false

cullingboolean

Activates culling of polygons.

Default Value:
  • false

depthTestboolean

Activates depth comparisons and updates to the depth buffer.

Default Value:
  • false

offsetsboolean

Activates adding an offset to depth values of polygon's fragments

Default Value:
  • false

polygonOffsetnumber

The polygon offset. Setting this property to anything other than 0 will automatically enable poygon offset fill.

Default Value:
  • 0