Garry's Mod Wiki

STENCILOPERATION

Description

Enumerations for use with render.SetStencilPassOperation, render.SetStencilFailOperation and render.SetStencilZFailOperation. Clientside only.

These enumerations are also mirrored as Enums/STENCIL.

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.

Page Links


Special Pages


Wikis

?

Render Time: 83ms

DB GetPage 46
Generate Html 5
SaveChanges (1) 16
Render Body 0
Render Sidebar 13