This has been vexing me for ages. Im in HDRP Unity 6 Preview and i’m trying to make objects render inside card windows only.
the card window has the following shader applied:
Shader "Custom/CardWindow"
{
SubShader
{
Pass
{
ColorMask 0
Zwrite Off
Stencil
{
Ref 2
Comp Always
Pass Replace
}
}
}
}
I was told that Custom Passes are the way to go, I have set up a seperate layer for objects called CardInterior, but I’m having trouble finding the correct settings to make the cube appear only inside the card window:
Theres so many settings, does anyone know how I would get this working?
Thanks in advance for any help.
