Search Unity

Question Projection of faces on the Y axis

Discussion in 'Shader Graph' started by JaimeGranel, Mar 22, 2023.

  1. JaimeGranel

    JaimeGranel

    Joined:
    Nov 6, 2020
    Posts:
    22
    Hi, I'm in Unity URP making a shader that generates a mask to block another shader. I want this mask to be generated by blocking faces based on the Y axis. Below is a diagram of what I have in mind:
    duda.png

    The faces that form a right angle with the ground would not be affected unless there is something on top of them. I would like these occlusions to be reduced by distance. As the example a below duda 2.png