Search Unity

Bug shader in opaque mode not receiving directional light

Discussion in 'High Definition Render Pipeline' started by AtleSt, Oct 16, 2020.

  1. AtleSt

    AtleSt

    Joined:
    Jul 11, 2016
    Posts:
    2
    i created this shader for my road but it is not receiving light from the sun so it looks unnaturally dark and has no shadows cast on it.

    shader in opaque mode:
    upload_2020-10-16_17-20-9.png
    same shader in transparent mode:
    upload_2020-10-16_17-20-58.png
    any help is appreciated
     
  2. AtleSt

    AtleSt

    Joined:
    Jul 11, 2016
    Posts:
    2
    Update: deleted the old directional light and created a new one, now it works fine.