What I want is to have a decal that ignores certain meshes. Turning off “receive decals” is not an option, since I want these meshes to be affected by other decals. So instead I enabled custom stencil and used it like this:
And that worked perfectly fine with translucent blend mode. However when i changed blend mode to dbuffer, so the decal would work correctly with lighting, my custom stencil node only returns zeroes and completely ignores actual stencil value.
Is it supposed to be like that or what am I doing wrong?