# UE 5.7 – Substrate + Clear Coat + Lumen HWRT causes colorfill square artifact

**URL:** <https://forums.unrealengine.com/t/ue-5-7-substrate-clear-coat-lumen-hwrt-causes-colorfill-square-artifact/2716100>\
**Category:** Rendering\
**Tags:** unreal-engine, bug-report, question\
**Created:** [April 17, 2026, 8:41am UTC](https://forums.unrealengine.com/t/ue-5-7-substrate-clear-coat-lumen-hwrt-causes-colorfill-square-artifact/2716100 "2026-04-17T08:41:41Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![McSwiff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@McSwiff](https://forums.unrealengine.com/u/McSwiff)\
**Post date:** [October 12, 2026, 5:29pm UTC](https://forums.unrealengine.com/t/ue-5-7-substrate-clear-coat-lumen-hwrt-causes-colorfill-square-artifact/2716100/5 "2026-10-12T17:29:50Z")

</div>

This has been fixed in 5.8, but if you’re stuck on 5.7 you can manually patch in the fix as it’s just a buildin shader that needs fixin.

> [@Substrate Automotive - Coated materials produce NaN/bad pixel](https://forums.unrealengine.com/t/substrate-automotive-coated-materials-produce-nan-bad-pixel/2713429/4):
>
> Hello! This is a “known” issue on 5.7 and will be fixed in 5.8. The change which addressed that was checked in CL 51211767 on our main line ([Github](https://github.com/EpicGames/UnrealEngine/commit/b1017dbb29c5230b15be791f9a7e51f01f1bd092)). I hope this helps. /Charles.

So in `\UE_5.7\Engine\Shaders\Private\StochasticLighting\StochasticLightingTileClassification.usf`  
On line 636 (if in Vanilla) add `if (bIsAnyValid)`

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/9/e29c9bb95c53218a7f98d08f9b5150804d08ed94.png)  
Then just restart your engine, or execute the console command `RecompileShaders changed`, and it’ll be fixed.

---

_[View the full topic](https://forums.unrealengine.com/t/ue-5-7-substrate-clear-coat-lumen-hwrt-causes-colorfill-square-artifact/2716100)._
