Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

RenderStateBlock.stencilReference

public int stencilReference;

Description

The value to be compared against and/or the value to be written to the buffer, based on the stencil state.

Unity applies these values to the GPU's render state if RenderStateBlock.mask includes a value of RenderStateMask.Stencil.

The default value is 0.