# Would this work? Shading model (no gradient in lighting)

**URL:** <https://forums.unrealengine.com/t/would-this-work-shading-model-no-gradient-in-lighting/460832>\
**Category:** Rendering\
**Tags:** light, lighting-scenarios, vertex-lighting, unreal-engine, Lighting, question\
**Created:** [January 21, 2020, 11:21pm UTC](https://forums.unrealengine.com/t/would-this-work-shading-model-no-gradient-in-lighting/460832 "2020-01-21T23:21:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_5861d6d2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5861d6d2](https://forums.unrealengine.com/u/anonymous_user_5861d6d2)\
**Post date:** [January 21, 2020, 11:21pm UTC](https://forums.unrealengine.com/t/would-this-work-shading-model-no-gradient-in-lighting/460832/1 "2020-01-21T23:21:50Z")

</div>

Been wanting to do a very simple shading model. that would create hard lines in all the lighting. Pretty much no gradients. I’m pretty sure in the pixel shader you have a light buffer? Pretty much for your entire screen you would have the color and value of light for every pixel.

Could you just make an “effect” light value \>0 set light value to 5, light value \> 5 set to 10. Light value \>10 set to 15.

Say you have clamps for 0/5/10/15/20/25/30/999999. (obviously i don’t know what light values are. Guessing 0-1?)

So these are the steps of “banding” I would want  
absolute black  
extremely dark  
deep shadow  
light shadow  
lit  
well lit  
brightly lit  
blinding ( i would assume this would actually be absolute white)

Is this possible and would it work how i think?

---

<div class="post-metadata">

**Author:** ![Rokasana](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rokasana/32/733760_2.png) [@Rokasana](https://forums.unrealengine.com/u/Rokasana)\
**Post date:** [January 21, 2020, 11:28pm UTC](https://forums.unrealengine.com/t/would-this-work-shading-model-no-gradient-in-lighting/460832/2 "2020-01-21T23:28:51Z")

</div>

Not fully sure if this will answer your question but Unreal did a tutorial on cell shading that created color banding.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/b/1eb4c5f193e82cfaa07c9389e9c92b5a275a7832.jpeg "Post Processing in UE4: Cel-Shading | Live Training | Unreal Engine Livestream") ](https://www.youtube.com/watch?v=cQw1CL0xYBE)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5861d6d2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5861d6d2](https://forums.unrealengine.com/u/anonymous_user_5861d6d2)\
**Post date:** [January 22, 2020, 2:39pm UTC](https://forums.unrealengine.com/t/would-this-work-shading-model-no-gradient-in-lighting/460832/3 "2020-01-22T14:39:48Z")

</div>

I’ve seen this before and it doesn’t really work that well thanks for the reply though
