- Home /
Question by
globalenemy · Apr 10, 2016 at 06:31 PM ·
shadersmeshesmasking
masking problem
Hey,
I'm having trouble getting my masking right.
Have a look at this animation of my problem: http://gfycat.com/ConstantUnknownElkhound
I'm using script and shader from here: http://wiki.unity3d.com/index.php?title=DepthMask
The dome has 2 objects (inside & outside). There are 2 Objects to mask out the dome (again inside & outside). The Script is attached to each of the objects, and the shader is on the mask objects.
Queue:
MaskInside = 3001
Dome_Inside = 3002
Mask_Outside = 3003
Dome_Outside = 3004
Mask Mesh: http://i.imgur.com/ACD5jnO.png
Inside version, slightly inside the Dome.
Outside version, slightly outside the Dome.
Any idea how I could get rid of this masking failure?
Comment