stencilFunc

 

Tag: stencilFunc
Parent tag: stencil
Attributes:

  • func (enum) – {LESS, NEVER, ALWAYS (default), LEQUAL, EQUAL, GEQUAL, GREATER, NOT_EQUAL}
  • ref (unsigned byte) – (default = 0)
  • mask (unsigned byte) – (default = 255)
  • write (bool) – enable/disable depth buffer updates (default = true)

Child tags (none)

See the specification for glStencilFunc.

Example:

<stencilFunc func=ALWAYS ref=0 mask=255 />