XR / Spatial Computing
WebXR Depth Sensing Tutorial: Making Virtual Objects Hide Behind Real Furniture
Without occlusion, AR content floats over the world regardless of where you put it. The WebXR Depth Sensing module gives you a per-frame depth map from the headset, and this walkthrough covers requesting it, choosing CPU versus GPU usage, the format and alignment details, the GLSL comparison that does the actual work, and how to soften the edge so it does not look like a cutout.