Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function StencilStart()
- render.ClearStencil()
- render.SetStencilEnable( true )
- render.SetStencilWriteMask( 1 )
- render.SetStencilTestMask( 1 )
- render.SetStencilFailOperation( STENCILOPERATION_KEEP )
- render.SetStencilZFailOperation( STENCILOPERATION_KEEP )
- render.SetStencilPassOperation( STENCILOPERATION_REPLACE )
- render.SetStencilCompareFunction( STENCILCOMPARISONFUNCTION_ALWAYS )
- render.SetStencilReferenceValue( 1 )
- render.SetColorModulation( 1, 1, 1 )
- end
- local function StencilReplace()
- render.SetStencilCompareFunction( STENCILCOMPARISONFUNCTION_EQUAL )
- render.SetStencilPassOperation( STENCILOPERATION_REPLACE )
- render.SetStencilReferenceValue(1)
- end
- local function StencilEnd()
- render.SetStencilEnable( false )
- end
Add Comment
Please, Sign In to add comment