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.

How to deal with receive shadow property per renderer in SRP?

Discussion in 'Graphics Experimental Previews' started by watsonsong, Mar 13, 2018.

  1. watsonsong

    watsonsong

    Joined:
    May 13, 2015
    Posts:
    555
    I am writing the custom SRP, and I met a problem.
    The receive shadow property on the renderer is not affect in my SRP. I add a keyword to the command buffer to mark the shadow is on. And my object shader is check this keyword. But this way is not support the per-renderer receive shadow. How can I deal with the receive shader, which keyword should I check in the shader?
     
  2. zhangwlgq

    zhangwlgq

    Joined:
    Apr 27, 2015
    Posts:
    1
    I also have this problem
     
  3. watsonsong

    watsonsong

    Joined:
    May 13, 2015
    Posts:
    555
    I think the solution is use different materials, one for receive shadow other one not. Instead of using the renderer property.