# Shadow quality issue

**URL:** <https://forums.unrealengine.com/t/shadow-quality-issue/310586>\
**Category:** Rendering\
**Tags:** Lightmass, Shadows, unreal-engine, Lightmap, Lighting, question\
**Created:** [March 12, 2015, 1:01am UTC](https://forums.unrealengine.com/t/shadow-quality-issue/310586 "2015-03-12T01:01:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claudiobdlv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Claudiobdlv](https://forums.unrealengine.com/u/Claudiobdlv)\
**Post date:** [March 12, 2015, 1:01am UTC](https://forums.unrealengine.com/t/shadow-quality-issue/310586/1 "2015-03-12T01:01:16Z")

</div>

Hi,

I´m having an issue with shadow quality in some parts of my project. The lightmap resolution is not the problem, I´m using 512 on that wall.  
Also I´m using static spot lights. Even on production it doesn´t get better.

 ![33762-captura+de+pantalla+(53).jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/f/d/7fd9358461e8309366ebe437f44f6e8580614541.jpeg)

 ![33761-captura+de+pantalla+(54).jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/5/9a53442901e0710c6ed8539d18c95ebd1292b373.jpeg)

Thanks, Claudio.

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [March 12, 2015, 1:08am UTC](https://forums.unrealengine.com/t/shadow-quality-issue/310586/2 "2015-03-12T01:08:59Z")

</div>

The lightmap resolution of the walls _is_ the problem. Depending on your UV layouts(i.e. if that face of the wall is taking up quarter of the UV layout than it gets only 128 pixels for lightmaps) and the size of the meshes even 512 may not be enough. So you need to readjust your UV’s or increase the resolution.

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [June 20, 2017, 6:29am UTC](https://forums.unrealengine.com/t/shadow-quality-issue/310586/3 "2017-06-20T06:29:12Z")

</div>

To clarify what Jacky is talking about, the Texel Density of your static mesh is likely the problem. On a 512x512 lightmap resolution, you might not really be taking full advantage of all of the shadow’s resolution.

Here’s a wall mesh with poor texel density for the lightmap UVs:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/1/f5183882d845df5d48c12161dde9af61d2d1792a.jpeg)

Here’s what it looks like with good texel density:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/2/3d2c322afc51fe975fc61f59a6d0dc7c6e96815a.jpeg)

Notice that in the good texel density you’re getting a lot of extra pixel width and height from the same lightmap resolution, therefore your shadows will look more crisp and less aliased.
