# Good practice to override engine ForwardLightingCommon.ush shader file?

**URL:** <https://forums.unrealengine.com/t/good-practice-to-override-engine-forwardlightingcommon-ush-shader-file/602943>\
**Category:** Rendering\
**Tags:** unreal-engine, Rendering, UE4, question\
**Created:** [July 12, 2022, 7:23am UTC](https://forums.unrealengine.com/t/good-practice-to-override-engine-forwardlightingcommon-ush-shader-file/602943 "2022-07-12T07:23:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ZkarmaKun](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zkarmakun/32/1194545_2.png) [@ZkarmaKun](https://forums.unrealengine.com/u/ZkarmaKun)\
**Post date:** [July 12, 2022, 11:43pm UTC](https://forums.unrealengine.com/t/good-practice-to-override-engine-forwardlightingcommon-ush-shader-file/602943/2 "2022-07-12T23:43:14Z")

</div>

There is no such thing as good practice trying to modify engine files, my suggestion is to create a fork from github and then modify the files as much as you please with your custom version.

Related to your topic, the place you are looking for to modify the light attenuation is inside the DeferredLightingCommon.ush, look at the function GetDynamicLightingSplit. I see you are trying to do some sort of toon effect, check this [link](https://forums.unrealengine.com/t/toon-shading-models-stylized-rendering-experiments/218895), it might help, a bunch of dudes are supporting a toon shading model for UE.

---

_[View the full topic](https://forums.unrealengine.com/t/good-practice-to-override-engine-forwardlightingcommon-ush-shader-file/602943)._
