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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

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