Search Unity

Question Only showing parts of objects visible through open doors

Discussion in 'Shader Graph' started by falsevac, Jun 7, 2019.

  1. falsevac

    falsevac

    Joined:
    Mar 16, 2016
    Posts:
    33
    I'm using Unity 2019.1, LWRP, Shader Graph.

    I'm building a room-based game and I need to hide all other rooms, except the one the player is currently in. I have the "dumb" version of this working, but I need to show the parts of other rooms that are visible through open doorways.

    Any idea how to get this working with Shader Graph? Does it support stencil buffers? Any other techniques I could use? Thanks.

    How it is right now (with other rooms not hidden):

    Before.jpg

    Areas in red should be hidden:

    After.jpg