Search Unity

Question Reveal shader doesn't work on URP shader graph (Is something wrong?)

Discussion in 'Scripting' started by bauyrsaq, Jan 16, 2023.

  1. bauyrsaq

    bauyrsaq

    Joined:
    Jul 12, 2022
    Posts:
    3
    Hello!

    I want to make reveal shader like for ultraviolet lights. I made this shader but It doesn't seems to work. I wanted it to get lights with same color and their distance from material, if it's near more than 6 then set alpha.

    upload_2023-1-16_18-6-52.png

    Thank you =)
     
    Last edited: Jan 16, 2023
  2. bauyrsaq

    bauyrsaq

    Joined:
    Jul 12, 2022
    Posts:
    3
    Light_Pos(4) is a Color