Custom Depth Write not working for Custom Depth stencil

Hello, i’ve got a mesh with Custom Depth Stencil set to ignore depth for all bits, so it would render over all other stencils, but for some reason it doesn’t work outside of the Blueprint viewport.
What am i doing wrong and how could i potentially fix this?

1 Like

I have been messing around with values while playing the level in the main viewport, and i’ve noticed that whenever i switch the Custom Depth Stencil Write Mask value to ‘Default’ and back to ‘All Bits (255)’, it starts working until after a few seconds.

I’ve found that apparently parenting the mesh masked out with the 004 value to the one masked with the 001 value, in the Blueprint, helps fixing the issue, kind of.
When re-parented, it does work majority of the time, but the stencil still doesn’t ignore depth sometimes.

2 Likes