If you use the outliner, please set custom depth stencil pass to enabled with stencil
← 2.Interaction