This commit is contained in:
2025-08-31 20:46:27 +02:00
parent 2d06552025
commit 104259f79b
11 changed files with 310 additions and 137 deletions

View File

@@ -0,0 +1,22 @@
Shader "Unlit/StencilMask" {
Properties {
[IntRange] _StencilID("Stencil ID", Range(0, 255)) = 0
}
SubShader {
Tags {
"RenderType"="Opaque"
"Queue"="Geometry-1"
"RenderPipeline" = "UniversalPipeline"
}
Pass {
Blend Zero One
ZWrite Off
Stencil {
Ref [_StencilID]
Comp Always
Pass Replace
}
}
}
}