Passthrough Windows
Updated: Sep 4, 2024
If your virtual scene fills the entire screen, for example, because you’re in a room or you want to use a skybox, you can create windows through which passthrough is visible by modifying the framebuffer’s alpha channel after everything else has been rendered. Writing an alpha value of one to a certain region of the screen will let passthrough shine through the virtual scene completely at that location. Writing an alpha value between zero and one will create a blend between passthrough and VR. The easiest way to do this is to use the prebuilt PokeAHoleMaterial material. You can either find this material in the search dropdown or in your content browser at /OculusXR Content/Materials/PokeAHoleMaterial.uasset. Conduct the samples PTMasking map for reference.