STENCILOPERATION
Description
Enumerations for use with render.SetStencilPassOperation, render.SetStencilFailOperation and render.SetStencilZFailOperation. Clientside only.
These enumerations are also mirrored as STENCIL enum.
Also see this corresponding MSDN entry: http://msdn.microsoft.com/en-us/library/windows/desktop/ff476219%28v=vs.85%29.aspx.
Values
STENCILOPERATION_KEEP | 1 | Preserves the existing stencil buffer value. |
STENCILOPERATION_ZERO | 2 | Sets the value in the stencil buffer to 0. |
STENCILOPERATION_REPLACE | 3 | Sets the value in the stencil buffer to the reference value, set using render.SetStencilReferenceValue. |
STENCILOPERATION_INCRSAT | 4 | Increments the value in the stencil buffer by 1, clamping the result. |
STENCILOPERATION_DECRSAT | 5 | Decrements the value in the stencil buffer by 1, clamping the result. |
STENCILOPERATION_INVERT | 6 | Inverts the value in the stencil buffer. |
STENCILOPERATION_INCR | 7 | Increments the value in the stencil buffer by 1, wrapping around on overflow. |
STENCILOPERATION_DECR | 8 | Decrements the value in the stencil buffer by 1, wrapping around on overflow. |