Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question See Through Shader Render Order

Discussion in 'Shaders' started by Evar155, Dec 5, 2023.

  1. Evar155

    Evar155

    Joined:
    Aug 3, 2019
    Posts:
    8
    Hi, I'm using a standard method for a See Through Walls mechanic using Renderer Features so the parts of the Player that are are occluded are rendered above solid objects. This effect is used on many 3D Platformers.
    Renderer Feature.png


    This works on most scenarios...
    1.png
    Except for when the Player (Capsule) is occluded by an Opaque (Cube) but that Opaque is behind a Semi Transparent (Plane) the See Through shader is drawn behind the Semi Transparent...
    2.png
    Which I know is what should be occurring due to the Renderer Features settings but I want the See Through to render above everything...
    3.png


    I already tried a lot of configurations with shader and stencil settings but nothing worked so I figured I would come here to ask.
    What could I do to achieve that effect? I'm not very savvy when it comes to shaders and renderer features.

    Thanks.
     

    Attached Files:

    • 4.png
      4.png
      File size:
      2.2 MB
      Views:
      25
    Last edited: Dec 5, 2023