Search Unity

Question Decal shader graph to render above the grass

Discussion in 'Shader Graph' started by mick129, Jul 9, 2022.

  1. mick129

    mick129

    Joined:
    Jun 19, 2013
    Posts:
    228
    Hello,

    To be honest, I'm fairly new with shader graph, looking at some tutorials and I have a small challenge I would like to solve.

    I want this decal to be rendered above the grass at all times. I have been looking at Scene Depth to achieve this but I can't manage to get anything working. Is it something that should be solved with a custom pass?

    I want to create some indicators like you can see in most MOBA games and below is my current result.

    Edit: the project is in HDRP

    upload_2022-7-9_14-24-18.png
    upload_2022-7-9_14-24-43.png
     
  2. Ben_at_Work

    Ben_at_Work

    Joined:
    Mar 16, 2022
    Posts:
    83
    Could you use the render queue to move the decal material in front of the plant material?