Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

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:
    200
    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:
    38
    Could you use the render queue to move the decal material in front of the plant material?