# Depth Fade with MSAA and Forward Shading

**URL:** <https://forums.unrealengine.com/t/depth-fade-with-msaa-and-forward-shading/453916>\
**Category:** Rendering\
**Tags:** msaa, Forward-Rendering, depth, unreal-engine, bug-report, question\
**Created:** [August 15, 2019, 3:35pm UTC](https://forums.unrealengine.com/t/depth-fade-with-msaa-and-forward-shading/453916 "2019-08-15T15:35:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bargest2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bargest2](https://forums.unrealengine.com/u/Bargest2)\
**Post date:** [August 15, 2019, 3:35pm UTC](https://forums.unrealengine.com/t/depth-fade-with-msaa-and-forward-shading/453916/1 "2019-08-15T15:35:08Z")

</div>

Found this strange outline effect when using Depth Fade in opacity  
The outline can be fixed with if expression, but this is still a strange bug

Happens only with Forward Shading + MSAA

 ![285106-2019-08-15-22-24-47-screenshot.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/a/12a2db92bb868260044bc3bdf008c6d1b604b3ef.png)

 ![285104-2019-08-15-22-24-24-screenshot.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/1/2b15a4ee6e595f348a294f9d9046df324afdf35a.png)

---

<div class="post-metadata">

**Author:** ![Junn\_Yeh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Junn\_Yeh](https://forums.unrealengine.com/u/Junn_Yeh)\
**Post date:** [November 24, 2022, 5:56pm UTC](https://forums.unrealengine.com/t/depth-fade-with-msaa-and-forward-shading/453916/2 "2022-11-24T17:56:33Z")

</div>

Hi @Bargest2 , thanks for sharing! I know it has been a while, but could you briefly explain or show how to use if expression to remove that bug?  
Thanks in advance!
