1212
STENCILOPERATION

Garry's Mod Wiki

Garry's Mod Wiki

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_KEEP1Preserves the existing stencil buffer value.
STENCILOPERATION_ZERO2Sets the value in the stencil buffer to 0.
STENCILOPERATION_REPLACE3Sets the value in the stencil buffer to the reference value, set using render.SetStencilReferenceValue.
STENCILOPERATION_INCRSAT4Increments the value in the stencil buffer by 1, clamping the result.
STENCILOPERATION_DECRSAT5Decrements the value in the stencil buffer by 1, clamping the result.
STENCILOPERATION_INVERT6Inverts the value in the stencil buffer.
STENCILOPERATION_INCR7Increments the value in the stencil buffer by 1, wrapping around on overflow.
STENCILOPERATION_DECR8Decrements the value in the stencil buffer by 1, wrapping around on overflow.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...