Skip to content

Lighting Troubleshooting

JammieDodgerr edited this page May 23, 2022 · 4 revisions

Shadow Artifacts

If you're using the ingame Sky you may notice some shadow Artifacts in your editor, this is because we're using Mesh Distance Fields.

example of bad shadows

The easy solution is to disable Cast Shadows in your SkyLight. However, this will only effect things in the editor.

SkyLight Settings

If things look bad ingame as well you also need to adjust the Distance Field Resolution Scale on each effected mesh.

Distance Field Resolution Scale

UE4 Documentation: Mesh Distance Fields

Glowing Objects

If you are using the Session ingame sky you may notice some objects glow at certain times of the day.

example of glowing

This is caused by the LPV Dynamic Global Illumination, there are two main ways to adjust this.

GIReplace

If you want to be able to control the effect you can use the GIReplace node in your Materials.

GIReplace example

A value of 0.2 should work for most objects but you can always adjust it or set it to 0 if needs be.

I'd recommend adding this to your Master Material so that it can be easily adjusted in each Material Instance.

UE4 Documentation: GIReplace

Disable GI with Post Processing

Another option is to disable the Global Illumination completly with a Post Processing Volume.

As you can see I have set the priority to 1 to make sure that it works alongside the ingame Post Processing.

Post Processing Settings