Search Unity

Apply shader on shadow areas (HDRP)

Discussion in 'General Graphics' started by sergio93, Dec 6, 2021.

  1. sergio93

    sergio93

    Joined:
    Aug 28, 2020
    Posts:
    52
    Hello!

    I wanted to ask if it is possible to create a shader that is applied only in shadow areas. Is there maybe a way where given the screen position, you can get wether or not the corresponding object on screen at that pixel is lit? In shader graph?

    Cheers
     
  2. sergio93

    sergio93

    Joined:
    Aug 28, 2020
    Posts:
    52
    Maybe there is a way to apply a texture over the shadow map? Or something like that?