Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Problem with skybox when using DepthMask.shader

Discussion in 'Shaders' started by probitaille, Jun 12, 2015.

  1. probitaille

    probitaille

    Joined:
    May 5, 2015
    Posts:
    34
    Hi,

    I use the DepthMask shader to hide some object with depth but, it's also hide my skybox.
    See here for DepthMash : http://wiki.unity3d.com/index.php?title=DepthMask

    Since I can't change the depth of my skybox (not sure about that), my skybox seems to be affected by this shader.

    How can I fix this?
     

    Attached Files: