Search Unity

Make directional light shadow only hit specific mesh renderers

Discussion in 'High Definition Render Pipeline' started by KqGMRPFkAeESzF8, Oct 18, 2021.

  1. KqGMRPFkAeESzF8

    KqGMRPFkAeESzF8

    Joined:
    Nov 20, 2018
    Posts:
    53
    I have a directional light in HDRP and a mesh renderer (1) casting a shadow on two more mesh renderers (2 and 3), but I only want mesh renderer 1 to cast a shadow on mesh renderer 2 and not on 3. Then I want to have a fourth mesh renderer cast its shadow on mesh renderer 3 but not on 2. I don't know how to acheive this in HDPR as only one directional light can cast shadows in HDPR.