Garry's Mod Wiki

Garry's Mod Wiki

  render.SetStencilTestMask( number bitMask )

Description

Sets the unsigned 8-bit (byte) bitflag mask that will be bitwise ANDed with all values as they are read (tested) from the Stencil Buffer

This can be considered a "niche" Stencil function as it is not required for many Stencil use-cases.

This is a companion function to render.SetStencilWriteMask which modifies Stencil Buffer values as they are written.

For more detailed information on the Stencil system, including usage examples, see the Stencils Render Reference page

Arguments

1 number bitMask
The 8-bit (byte) mask
Set to 255 to make no change to read Stencil Buffer values.

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...