Constructor
Members
boolean
depthTest
Indicates if we want to test pixels with values in the depth buffer
- Default Value:
- {true}
boolean
depthWrite
Indicates if we want to write in the depth buffer
- Default Value:
- {true}
StencilOperation
stencilDepthTestFail
Operation to execute when stencil test failed using depth buffer
- Default Value:
- {StencilOperation.Keep}
number
stencilReference
Stencil reference value
- Default Value:
- {0}
StencilOperation
stencilSuccess
Operation to execute when stencil test is a success
- Default Value:
- {StencilOperation.Keep}
boolean
stencilTest
Indicates if stencil test is active
- Default Value:
- {false}
StencilOperation
stencilTestFail
Operation to execute when stencil test failed
- Default Value:
- {StencilOperation.Keep}
number
stencilWrite
Value to write in the stencil buffer when stencil is active
- Default Value:
- {0xFF}
Methods
isEqual(state) → {boolean}
Check if the given StateBlock instance is equal to this one
Parameters:
Name | Type | Description |
---|---|---|
state |
StateBlock | A StateBlock instance |
True if the two states are equals, otherwise false
boolean