Search Unity

Question Certain objects not recieving shadows on build

Discussion in 'Global Illumination' started by Panos2, Mar 6, 2023.

  1. Panos2

    Panos2

    Joined:
    Sep 25, 2022
    Posts:
    9
    I have created a scene with directional light. In the scene, I made a small terrain that contains trees, vegetation, and water. In the editor, everything receives real-time lighting from the directional light correctly, but in build the grass and the water plane does not. The terrain and trees create and receive shadows. I am not sure if the shaders that the grass and the water have is the issue here or if I a missing some crucial settings here.
     

    Attached Files:

  2. juniormagalhaes

    juniormagalhaes

    Joined:
    Mar 2, 2021
    Posts:
    2
    I'm having the same problem.
     
  3. Panos2

    Panos2

    Joined:
    Sep 25, 2022
    Posts:
    9
    After hours and hours of trial and error, I managed to solve it. It turns out that in Project Settings > Quality, I had to temporarily disallow low and medium Fidelities except for the High to be used in the build
     

    Attached Files:

  4. juniormagalhaes

    juniormagalhaes

    Joined:
    Mar 2, 2021
    Posts:
    2
    I fixed the email, it was just putting the Cascade in the shadow if there is only one Cascade this error happens.