# Is it possible to add a custom shading model to a decal?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-add-a-custom-shading-model-to-a-decal/1241754>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [July 27, 2023, 2:33pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-add-a-custom-shading-model-to-a-decal/1241754 "2023-07-27T14:33:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elias\_Kremer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elias\_Kremer](https://forums.unrealengine.com/u/Elias_Kremer)\
**Post date:** [July 27, 2023, 2:33pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-add-a-custom-shading-model-to-a-decal/1241754/1 "2023-07-27T14:33:07Z")

</div>

Hello,  
I created a custom shading model for our project that modifies the received lighting using a texture (plugged into the custom data pins).  
To be more flexible and reducing the need of masks, I want to use decals that render with my custom shading model and only place them where I want.

In theory this should be possible, as decals write into the basecolor-buffer before it is passed to lighting, right?

Does someone did this before or has some ideas how to achieve this?

All best

---

<div class="post-metadata">

**Author:** ![Elias\_Kremer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elias\_Kremer](https://forums.unrealengine.com/u/Elias_Kremer)\
**Post date:** [July 27, 2023, 4:16pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-add-a-custom-shading-model-to-a-decal/1241754/2 "2023-07-27T16:16:27Z")

</div>

basically what I want is to overwrite the shading model with a decal.
