Garry's Mod Wiki

Revision Difference

render.SetStencilCompareFunction#513022

<function name="SetStencilCompareFunction" parent="render" type="libraryfunc"> <description> Sets the compare function of the stencil. Pixels which fail the stencil comparison function are not written to the render target. The operation to be performed on the stencil buffer values for these pixels can be set using <page>render.SetStencilFailOperation</page>. Pixels which pass the stencil comparison function are written to the render target unless they fail the depth buffer test (where applicable). The operation to perform on the stencil buffer values for these pixels can be set using <page>render.SetStencilPassOperation</page> and <page>render.SetStencilZFailOperation</page>. </description> <realm>Client</realm> <args> <arg name="compareFunction" type="number">Compare function, see &lt;page&gt;STENCILCOMPARISONFUNCTION&lt;/page&gt;, and &lt;page&gt;STENCIL&lt;/page&gt; for short.</arg> </args> </function>