# Decals fading with distance with cross pattern.

**URL:** <https://forums.unrealengine.com/t/decals-fading-with-distance-with-cross-pattern/436700>\
**Category:** Rendering\
**Tags:** fade-in, unreal-engine, Decals, UE4, question\
**Created:** [October 30, 2018, 12:10pm UTC](https://forums.unrealengine.com/t/decals-fading-with-distance-with-cross-pattern/436700 "2018-10-30T12:10:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shri\_Charana](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shri\_Charana](https://forums.unrealengine.com/u/Shri_Charana)\
**Post date:** [October 30, 2018, 12:10pm UTC](https://forums.unrealengine.com/t/decals-fading-with-distance-with-cross-pattern/436700/1 "2018-10-30T12:10:11Z")

</div>

Hi, The decals are fading out in a crossed pattern when I move away from the decal used wall. This happens when I use 0.01 in the decal’s X size. If if change this to 0.05 then this fading happens when I move farther away, but this projects the decal on the floor too much. How can I change this behavior?

 ![258079-decal-close.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/9/58963d3ad0bebb9671b8ddb5a942c00eeb83a651.jpeg)

This (below) is what Happens when I move farther away. Thank you for your help!

 ![258080-decal-far.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/a/6fa6bdd62051efa6e8ff554ffa6688a72550801d.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7e98c900](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7e98c900](https://forums.unrealengine.com/u/anonymous_user_7e98c900)\
**Post date:** [October 30, 2018, 10:03pm UTC](https://forums.unrealengine.com/t/decals-fading-with-distance-with-cross-pattern/436700/2 "2018-10-30T22:03:37Z")

</div>

This does appear to be a form of clipping due to the extremely small scale. One option is to set your floor to not receive decals. If this is not an option that works, I can take a look further to see what else I can find for you

---

<div class="post-metadata">

**Author:** ![Shri\_Charana](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shri\_Charana](https://forums.unrealengine.com/u/Shri_Charana)\
**Post date:** [October 31, 2018, 1:48am UTC](https://forums.unrealengine.com/t/decals-fading-with-distance-with-cross-pattern/436700/3 "2018-10-31T01:48:45Z")

</div>

Hey, thank you for the answer. Yes, disabling decals for floors does not work for me. The same happens with a separate mesh (plane) placed very close to the walls.

---

<div class="post-metadata">

**Author:** ![AyanMiru](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ayanmiru/32/1194638_2.png) [@AyanMiru](https://forums.unrealengine.com/u/AyanMiru)\
**Post date:** [October 31, 2018, 3:26am UTC](https://forums.unrealengine.com/t/decals-fading-with-distance-with-cross-pattern/436700/4 "2018-10-31T03:26:13Z")

</div>

This looks like problem with depth precision. Try this console command:

```
r.gbufferformat 5

```

Here are similar questions:

> **[How do i increase depth buffer precision or improve zfighting issues?](https://forums.unrealengine.com/questions/566680/how-do-i-increase-depth-buffer-precision-or-improv.html)**
>
> Hello i’m designing the level of my game and i started to notice some z fighting from a distance (but not upclose) in a lot of objects (as you can see on the attached image), i assume it’s because the z buffer doesnt have enough precision. I tried to...

[https://forums.unrealengine.com/development-discussion/rendering/76233-scene-depth-precision](https://forums.unrealengine.com/development-discussion/rendering/76233-scene-depth-precision)

---

<div class="post-metadata">

**Author:** ![Shri\_Charana](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shri\_Charana](https://forums.unrealengine.com/u/Shri_Charana)\
**Post date:** [October 31, 2018, 5:12am UTC](https://forums.unrealengine.com/t/decals-fading-with-distance-with-cross-pattern/436700/5 "2018-10-31T05:12:30Z")

</div>

Hi, thanks for the response. The command you mentioned doesn’t help. But increasing the project’s near clip distance does help. I might encounter problems with the near clipping later but for now it works. Is there any other way I can solve this issue?

---

<div class="post-metadata">

**Author:** ![AyanMiru](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ayanmiru/32/1194638_2.png) [@AyanMiru](https://forums.unrealengine.com/u/AyanMiru)\
**Post date:** [October 31, 2018, 5:33am UTC](https://forums.unrealengine.com/t/decals-fading-with-distance-with-cross-pattern/436700/6 "2018-10-31T05:33:02Z")

</div>

I don’t know a way to adjust far clipping plane directly, but you can try to make sure that your map is as compact as it can be, so Depth Buffer have less distance to pack (Which may be not how it works at all :)).

plus,

One of the workarounds can be realized with vertex position offset inside your decal material. And use of Mesh Decals:

> **[Mesh Decals](https://docs.unrealengine.com/4.27/en-US/WorkingWithContent/MeshDecals/)**
>
> This is an overview of the Mesh Decals feature in Unreal Engine 4.

basically you moving vertexes of custom mesh decal closer to the player’s camera when he moves away.

---

<div class="post-metadata">

**Author:** ![Shri\_Charana](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shri\_Charana](https://forums.unrealengine.com/u/Shri_Charana)\
**Post date:** [October 31, 2018, 8:44am UTC](https://forums.unrealengine.com/t/decals-fading-with-distance-with-cross-pattern/436700/7 "2018-10-31T08:44:16Z")

</div>

I had UE4 starter content skyphere in place which was huge. I’ll reduce it’s size to .01,  
try reverting to the old near clip value and check if it helps.

I have looked into vertex position offset before when I was trying to use a parallax (I think its parallax i’m using the pixel offset for the depth) masked material on a plane on a wall. The mesh disappears into the wall when camera is oriented in steep angles to the plane. May be it is just parallaxing issue.

---

<div class="post-metadata">

**Author:** ![Shri\_Charana](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shri\_Charana](https://forums.unrealengine.com/u/Shri_Charana)\
**Post date:** [October 31, 2018, 9:09am UTC](https://forums.unrealengine.com/t/decals-fading-with-distance-with-cross-pattern/436700/8 "2018-10-31T09:09:16Z")

</div>

Reducing the sky sphere size did not help.
