Search Unity

Question RenderObjects.settings.stencilSettings - StencilStateData detailed setup

Discussion in 'Universal Render Pipeline' started by tomekkie2, Apr 15, 2021.

  1. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    973
    How to setup StencilStateData facing?
    It has only the passOperation, neither passOperationFront nor passOperationBack field.

    How to limit the passOperation to front or back faces?
    I just need to get an effect of PassFront or PassBack in the shader.


    Or analogically - stencilCompareFunction - neither stencilCompareFront nor stencilCompareBack field is available.
    I would like to know how to get an effect of CompFront or CompBack in the shader?