# Can I use distances fields with a static mesh that doesn't cast shadows?

**URL:** <https://forums.unrealengine.com/t/can-i-use-distances-fields-with-a-static-mesh-that-doesnt-cast-shadows/408206>\
**Category:** Asset Creation\
**Tags:** distance-fields, cast-shadow, unreal-engine, question\
**Created:** [October 29, 2017, 1:10am UTC](https://forums.unrealengine.com/t/can-i-use-distances-fields-with-a-static-mesh-that-doesnt-cast-shadows/408206 "2017-10-29T01:10:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua\_Morrison](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joshua\_Morrison](https://forums.unrealengine.com/u/Joshua_Morrison)\
**Post date:** [October 29, 2017, 1:10am UTC](https://forums.unrealengine.com/t/can-i-use-distances-fields-with-a-static-mesh-that-doesnt-cast-shadows/408206/1 "2017-10-29T01:10:42Z")

</div>

I’m currently having an issue where if I turn off cast shadows on my static mesh, it no longer generates a distance field. I’m using the distance fields to generate things in the material no for the actual distance field ambient occlusion. However on a specific static mesh I want to disable casting shadows while keeping the distance fields. Is this at all possible?
