Guest User

StencilMaskURP.shader

a guest
Sep 21st, 2025
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Shader "Custom/StencilLight Mask"
  2. {
  3.     SubShader
  4.     {
  5.         Tags
  6.         {
  7.             "RenderType" = "Transparent"
  8.             "Queue" = "Transparent"
  9.             "RenderPipeline" = "UniversalPipeline"
  10.         }
  11.        
  12.         LOD 100
  13.        
  14.         Pass
  15.         {          
  16.             Ztest Greater
  17.             Zwrite off
  18.             Cull Off
  19.             Colormask 0
  20.             Stencil
  21.             {
  22.                 Comp Greater
  23.                 Ref 1
  24.                 Pass Replace
  25.             }
  26.         }
  27.        
  28.        
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment