# Decal color is fading out on edges

**URL:** <https://forums.unrealengine.com/t/decal-color-is-fading-out-on-edges/2039328>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Decals, Rendering, question\
**Created:** [September 26, 2024, 12:32pm UTC](https://forums.unrealengine.com/t/decal-color-is-fading-out-on-edges/2039328 "2024-09-26T12:32:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shue\_it](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shue\_it](https://forums.unrealengine.com/u/shue_it)\
**Post date:** [September 26, 2024, 12:32pm UTC](https://forums.unrealengine.com/t/decal-color-is-fading-out-on-edges/2039328/1 "2024-09-26T12:32:04Z")

</div>

Hello,

I’m currently trying to do simple things with decals, like drawing a long line across a terrain, but I’m facing a behavior I can’t understand, as shown on the screenshot below.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/c/26ccad6a54af0e139129138901e377aadcc82bd4.jpeg)

On the right and left edge, we can see the red color fading out, for no reason. The Decal Material I’m using is also a very simple one, with just a full red color and an opacity of 1.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/8/96835cbc322f5d2325d847ba84b4498aa002bddb.png)

I tried the 3 possible blend modes for deferred decals, no significant changes (AlphaComposite is a bit better only) .  
Any idea why it’s not showing full red on the first screenshot ?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 26, 2024, 12:42pm UTC](https://forums.unrealengine.com/t/decal-color-is-fading-out-on-edges/2039328/2 "2024-09-26T12:42:41Z")

</div>

How does this make a line? I get

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/7/c87a8bdbb752642f6cb7845d7ffa577052e01ca4.jpeg)

Did you just scale the decal in the map? Even if I do that, I get

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/a/6fa31654837a609c95efbc304504203538ccd4a1.jpeg)

---

<div class="post-metadata">

**Author:** ![shue\_it](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shue\_it](https://forums.unrealengine.com/u/shue_it)\
**Post date:** [September 26, 2024, 1:11pm UTC](https://forums.unrealengine.com/t/decal-color-is-fading-out-on-edges/2039328/3 "2024-09-26T13:11:46Z")

</div>

Thanks for your reply !  
I indeed scale it to have the line.

After several tests, I found that I have this problem when I’m setting this decal as a child of another actor (same problem with DecalComponent) which rotates (even if I set the attachment rules to KeepWorld when attaching it in C++).  
By manually detaching it and forcing its rotation to (0,90,0), I have the same results as you !

Now I need to find why my AttachmentTransformRules are not working (or if there’s a problem with my rotations) 😅

---

<div class="post-metadata">

**Author:** ![shue\_it](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shue\_it](https://forums.unrealengine.com/u/shue_it)\
**Post date:** [September 26, 2024, 3:37pm UTC](https://forums.unrealengine.com/t/decal-color-is-fading-out-on-edges/2039328/4 "2024-09-26T15:37:36Z")

</div>

It was indeed wrong rotations, because my decal was following its parent actor rotations.  
After some fixes, it works like a charm.

My bad ^^’

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [October 26, 2024, 3:38pm UTC](https://forums.unrealengine.com/t/decal-color-is-fading-out-on-edges/2039328/5 "2024-10-26T15:38:02Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
