SceneTexture:CustomStencil emits only zeroes on 4.18.2 Mac Sierra+Metal
I create the following test project with one map "TestMap". I enable depth stencil pass "enabled with stencil" in project settings. I create one large cube, custom depth pass enabled, customdepth 201. I create an infinite extent postprocess volume. I assign it a custom material DebugMaterial, which looks at SceneTexture:CustomStencil and displays green if R is 0 and DebugFloat4Values on the CustomStencil value otherwise. Here is the project:
I test this on two machines.
Another weird thing: If I switch into Buffer Visualizer->Custom Depth mode, then switch back to "Lit", I get a freeze frame of the cube with the debug values printed over it as expected, except that (1) the debug numbers are the nonsensical value "600", and (2) it does not "animate", if I move the camera it remains frozen. I don't know what this means.
If for some reason custom stencils don't work on Mac, or don't work with certain video cards or something, this should be clearly documented, and the editor should display whatever helpful warnings are needed when running in Metal mode instead of just emitting garbage values.
Follow this question
Once you sign in you will be able to subscribe for any updates here