Skip to main content
New Participant
February 23, 2023

Stencil Buffer Seems to be disabled on Quest Pro

Hi there, I am making a demo that has a portal in it.  I am using a stencil buffer for it.  Everything looks great in Unity but when I load it onto my Quest Pro the objects do not get cropped to the portal edges.  It's almost like there is no stencil buffer or it's disabled on the Quest.  Is there a way to turn it on?  Thanks

2 replies

BanditUK
New Participant
March 12, 2023

I'm also searching for a solution to this problem. My stencil shader works great in the editor but doesn't work on my Quest 2. Looks like it could be to do with Android not having stencil support / disabled by default. Can anyone out there shed some light?

New Participant
October 29, 2023

Hi,

Starting from the OpenXR hello_xr application, I've succed in enabling and using the stencil buffer.
Have a look at my today ticket : https://communityforums.atmeta.com/t5/Quest-Development/OXR-Meta-Quest-2-use-stencil-buffer-with-OpenXR-SDK-in-hello-xr/m-p/1098411#M7434

Have a nice day