Distance Field shadows are too dark for vegetation

Hi
I am having this issue where indirect shadows are getting too dark for vegetation placed in non-directly lit areas on the map. When i checked, there is an option for adjusting ‘Distance Field Indirect Shadow Min Visibility’ under Advanced lighting settings for the asset. It seems to be disabled. Is there a way to enable it? Here is a screen shot

The setting is for changing the Distance Field Indirect Shadow Bias, But you appear to have Distance Field Indirect Shadow unchecked. Try enabling it and adjusting the bias settings until the shadows are correct.

1 Like

That is the problem. ‘Distance Field Indirect Shadow’ checkbox is disabled. If there is a way to enable it, the other one might be available
image

  1. Ensure that the object is set to Moveable
  2. Enable “Distance Field Shadows” on your directional light and skylight
  3. Check that your mesh has “Generate Mesh Distance Fields” enabled
1 Like

When I set the object to movable, the options become available. But when i turn on ‘Distance Field Indirect shadow’, it gets worse. The Min visibility value is between 0.1 and 1, keeping it at 1 makes shadow even bigger. Here are before and after



Also Skylight has no option to turn on Distance Field shadows. Mesh has ‘Generate Mesh Distance Fields’ on
I really would like to see a solution for reducing the indirect shadow darkness values for vegetation. Any help appreciated. Thanks

1 Like

While waiting for someone to reply, I did some research and found this temporary fix. If I make a prefab with the vegetation asset with its ‘Affect Distance Field lighting’ turned off, and add static geometry with visibility off in the prefab and keep its Affect Distance Field Lighting on, then i can control how much soft indirect shadows it will generate. Here is an example:


In this screenshot one close to camera is a prefab with 3 small spheres inside the prefab (I used a temporary sphere mesh, will be tweaking to something that will suit better), second one is just a static mesh, same from the one posted before.

Keep all of these off under Render settings:

Anyhow, this will work only on flat surfaces. I will still keep doing some research on this.
If someone could let me know of a proper solution, its much appreciated.
Thanks

1 Like