# Add Gradient 

**URL:** <https://forums.unrealengine.com/t/add-gradient/2232244>\
**Category:** Rendering\
**Tags:** unreal-engine, Rendering, question\
**Created:** [December 19, 2024, 3:43pm UTC](https://forums.unrealengine.com/t/add-gradient/2232244 "2024-12-19T15:43:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WhereIsTheRum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WhereIsTheRum](https://forums.unrealengine.com/u/WhereIsTheRum)\
**Post date:** [December 19, 2024, 3:43pm UTC](https://forums.unrealengine.com/t/add-gradient/2232244/1 "2024-12-19T15:43:39Z")

</div>

How does one get a gradient falloff from such a mask?

 ![Mask](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/8/c48eddb5d538294fe34623b4602b338018fba7f4.jpeg)  
 ![Mask2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/d/f1dfd2664823ddc8fc4a323114cb258d0bb3f5f9.jpeg)

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [December 19, 2024, 5:38pm UTC](https://forums.unrealengine.com/t/add-gradient/2232244/2 "2024-12-19T17:38:58Z")

</div>

This is called a distance field and it is typically done by running the mask through the jump flood algorithm, lots of videos on youtube about doing this in Unreal. Here’s one:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/1/49114be7d2971dd2d2f4fd18ae4adfdc13469b09.jpeg "The Jump Flood Algorithm explained! UE implementations using Blueprint and Niagara") ](https://www.youtube.com/watch?v=-lEeBwNdfw4)
