Skip to content

Weaken shadows under scattered light#1295

Merged
Interkarma merged 2 commits into
Interkarma:masterfrom
petchema:light-scattering-no-hard-shadows
May 17, 2019
Merged

Weaken shadows under scattered light#1295
Interkarma merged 2 commits into
Interkarma:masterfrom
petchema:light-scattering-no-hard-shadows

Conversation

@petchema
Copy link
Copy Markdown
Collaborator

When light is scattered, there should be less hard shadows (only ambient occlusion shadows); This is most obvious during heavy fog.

So I modified the shadows to be

  • slightly lighter during overcast weathers;
  • very light during snowing weather;
  • almost inexistant during fog.

Pierre Etchemaite added 2 commits May 12, 2019 08:56
When light is scattered, there should be less hard shadows (only ambient
occlusion shadows); This is most obvious during heavy fog.

So I modified the shadows to be
- slightly lighter during overcast weathers;
- very light during snowing weather;
- almost inexistant during fog.
shadowStrength = OvercastShadowStrength;
}

shadowStrength *= Mathf.Exp(-50f * currentOutdoorFogSettings.density);
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could have added shadowStrength to FogSettings, but that would have broken the compatibility with Enhanced Sky...
So I used a formula instead

@Interkarma Interkarma merged commit eb8ca09 into Interkarma:master May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants