Members
Activates blending of the computed fragment color values.
- Default Value:
- true
blendMode BLEND_MODES
The blend mode to be applied when this state is set. Apply a value of normal
to reset the blend mode.
Setting this mode to anything other than NO_BLEND will automatically switch blending on.
- Default Value:
- 'normal'
Specifies whether or not front or back-facing polygons can be culled.
- Default Value:
- false
Activates culling of polygons.
- Default Value:
- false
cullMode CULL_MODES
The culling settings for this state none - No culling back - Back face culling front - Front face culling
The data is a unique number based on the states settings. This lets us quickly compare states with a single number rather than looking at all the individual settings.
Enables or disables writing to the depth buffer.
- Default Value:
- true
Activates depth comparisons and updates to the depth buffer.
- Default Value:
- false
Activates adding an offset to depth values of polygon's fragments
- Default Value:
- false
The polygon offset. Setting this property to anything other than 0 will automatically enable polygon offset fill.
- Default Value:
- 0
Methods
A quickly getting an instance of a State that is configured for 2d rendering.
Returns:
Type | Description |
---|---|
State | a new State with values set for 2d rendering |