I am using the depth mask the enables objects behind it to become transparent. Is it possible to limit its effects to objects near it, instead of everything. I want to like a window, but if i look through a window at another window its walls are gone. Even a nudge in the right direction would be appreciated!
Shader "Depth Mask" {
SubShader {
Tags {"Queue" = "Geometry-10" }
Pass {Lighting Off
ZTest LEqual
ZWrite On
ColorMask 0}
}
}