# Custom Depth material is z-fighting with itself?

**URL:** <https://forums.unrealengine.com/t/custom-depth-material-is-z-fighting-with-itself/2873408>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [November 26, 2026, 10:46am UTC](https://forums.unrealengine.com/t/custom-depth-material-is-z-fighting-with-itself/2873408 "2026-11-26T10:46:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![XxpiingyxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxpiingyxX](https://forums.unrealengine.com/u/XxpiingyxX)\
**Post date:** [November 26, 2026, 10:46am UTC](https://forums.unrealengine.com/t/custom-depth-material-is-z-fighting-with-itself/2873408/1 "2026-11-26T10:46:18Z")

</div>

I have this translucent material with Custom Depth, but as soon as I have tried it in VR it starts to flicker in both VR and editor. It kind of looks like its z-fighting with itself.

I have tried to use different Depth Bias, but it still flickers to some extent.  
I would very much appreciate if someone took a look and maybe had some ideas I could try. You will find some of the important project settings at the bottom of this post.

  
(ignore the outline in the video, its a separate PostProcess material).

Here it the material setup:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/f/f0fc1b8be9897ea83dedb0e12037cf990d266964.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/6/60629dfe08f1ddee8bf44e715e424ea252148acd.png)

It’s a PC VR project and here are a few of the settings:

```auto
Forward Shading
TAA 

r.SSR.Quality=1                                                 
r.SceneColorFringeQuality=0                        
r.SeparateTranslucency=0                              
r.MotionBlurQuality=0                                      
r.BloomQuality=0                                             
r.MaxAnisotropy=16                                         
r.TemporalAACurrentFrameWeight=0.1         
r.TemporalAASamples=4                               
r.TemporalAA.Quality=3                                   
r.TemporalAAFilterSize=1                              
r.Tonemapper.Sharpen=0                      

r.GenerateMeshDistanceFields=True
r.AllowOcclusionQueries=False
r.MobileHDR=False                                            
vr.MobileMultiView=False      
vr.InstancedStereo=False
vr.RoundRobinOcclusion=True 
r.Nanite=0

```
