Garry's Mod Wiki

STENCILCOMPARISONFUNCTION

Description

Enumerations for use with render.SetStencilCompareFunction.

The comparison is between the reference value set by render.SetStencilReferenceValue, and the value of each pixel in the stencil buffer.

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/ff476101%28v=vs.85%29.aspx.

Values

STENCILCOMPARISONFUNCTION_NEVER1Never passes.
STENCILCOMPARISONFUNCTION_LESS2Passes where the reference value is less than the stencil value.
STENCILCOMPARISONFUNCTION_EQUAL3Passes where the reference value is equal to the stencil value.
STENCILCOMPARISONFUNCTION_LESSEQUAL4Passes where the reference value is less than or equal to the stencil value.
STENCILCOMPARISONFUNCTION_GREATER5Passes where the reference value is greater than the stencil value.
STENCILCOMPARISONFUNCTION_NOTEQUAL6Passes where the reference value is not equal to the stencil value.
STENCILCOMPARISONFUNCTION_GREATEREQUAL7Passes where the reference value is greater than or equal to the stencil value.
STENCILCOMPARISONFUNCTION_ALWAYS8Always passes.