# SkyLight with Mesh Distance Fields causing errors (4-26)

**URL:** <https://forums.unrealengine.com/t/skylight-with-mesh-distance-fields-causing-errors-4-26/503515>\
**Category:** Rendering\
**Tags:** skylight, unreal-engine, UE4-26, question\
**Created:** [March 2, 2022, 9:10pm UTC](https://forums.unrealengine.com/t/skylight-with-mesh-distance-fields-causing-errors-4-26/503515 "2022-03-02T21:10:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![msuleskyp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@msuleskyp](https://forums.unrealengine.com/u/msuleskyp)\
**Post date:** [March 2, 2022, 9:10pm UTC](https://forums.unrealengine.com/t/skylight-with-mesh-distance-fields-causing-errors-4-26/503515/1 "2022-03-02T21:10:03Z")

</div>

Hello,

I’ve been trying to follow a tutorial from Willaim Foucher about exterior lighting, but when I went to add a skylight and turn on Generate Mesh Distance Fields in my project settings, this is what happened to my terrain, and oinly setting the skylight to Realtime Capture seemed to do anything, does anyone know what’s going on?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/b/d2bb44e84590c52e8f2cbd2bb020afca093f4b97.jpeg)
