# Custom Depth on Additive Material?

**URL:** <https://forums.unrealengine.com/t/custom-depth-on-additive-material/436240>\
**Category:** Rendering\
**Tags:** particle-systems, additive, custom-depth, unreal-engine, volumetric-fog, question\
**Created:** [October 24, 2018, 4:04am UTC](https://forums.unrealengine.com/t/custom-depth-on-additive-material/436240 "2018-10-24T04:04:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![i-ribeiro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@i-ribeiro](https://forums.unrealengine.com/u/i-ribeiro)\
**Post date:** [October 24, 2018, 4:04am UTC](https://forums.unrealengine.com/t/custom-depth-on-additive-material/436240/1 "2018-10-24T04:04:15Z")

</div>

My goal is to always render my additive material (a volumetric fog material) behind any objects in the scene, except the sky sphere. Since the material must be Additive, I cannot use the Pixel Depth Offset pin in the material, nor the Scene Depth node. I can’t use Translucency Sort Priority either for the same reason.

For context, I’m this material is for a Northern Lights particle system. In order to get the perspective right, the system must be close to the character. Unfortunately this also allows the system to occlude other surfaces in the scene, revealing that the Northern Lights are not super-massive, but instead just close to the camera.

Any suggestions are welcome, even if they are not full solutions. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![NeoHS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NeoHS](https://forums.unrealengine.com/u/NeoHS)\
**Post date:** [June 10, 2019, 1:07pm UTC](https://forums.unrealengine.com/t/custom-depth-on-additive-material/436240/2 "2019-06-10T13:07:49Z")

</div>

Did you find a solution or alternative?

---

<div class="post-metadata">

**Author:** ![i-ribeiro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@i-ribeiro](https://forums.unrealengine.com/u/i-ribeiro)\
**Post date:** [June 10, 2019, 1:33pm UTC](https://forums.unrealengine.com/t/custom-depth-on-additive-material/436240/3 "2019-06-10T13:33:26Z")

</div>

Unfortunately no. I just moved on to something else. I’ve been thinking of using trueSky source code and adding a northern lights effect through their system, as that would probably make my job easier. But other than that, no I have no solutions yet.

---

<div class="post-metadata">

**Author:** ![Lala\_rabbit\_bomb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lala\_rabbit\_bomb](https://forums.unrealengine.com/u/Lala_rabbit_bomb)\
**Post date:** [April 7, 2023, 11:55pm UTC](https://forums.unrealengine.com/t/custom-depth-on-additive-material/436240/4 "2023-04-07T23:55:41Z")

</div>

Right now I’m having that problem, did you get anything?
