Hey is anyone able to use the Stencil Test
setting in post process materials? It seems to be broken or I’m just not using it correctly, because it’s always testing against 0
instead of the actual custom stencil values
Using UE 5.4.4
Hey is anyone able to use the Stencil Test
setting in post process materials? It seems to be broken or I’m just not using it correctly, because it’s always testing against 0
instead of the actual custom stencil values
Using UE 5.4.4
In project settings you might need: Engine >> Rendering >> Post Processing >> Custom Depth Stencil Pass >> Enabled With Stencil
I already have that enabled in the project.
Does the Stencil Test feature work on your end?
Hi @X-perto,
Choose this visualization option to make sure the custom stencil is working in your project. If this view appears empty, then something is wrong on your meshes or your project settings. If this is appearing correctly, then the problem is indeed the materal.
That being said, if you are having issues getting that method to work within the material, this is the more common method for testing against a stencil value:
Good luck! Let me know if you have any other quesitons.
Again not what I was asking.
Does the stencil test feature I mentioned and highlighted in the screenshot work for you?
it doesn’t work with the blendable location you have selected. that should output a warning in the log. luckily i got that. as tested, after tonemapping the stencil is kinda cluttered. you can see that if you display it directly. but… it still works somehow. kinda like a query. means… if any pixel hits the stencil condition. it applies the ppm to the whole screen. maybe a cheat for some form of game or graphics logic.