World Mesh provides a real-time 3D reconstruction of the physical environment, allowing AR experiences to respond to and be occluded by real-world surfaces.
Key capabilities include:
- World Mesh: An automatically generated 3D mesh of the real world used for occlusion and environmental interaction.
- Hit Test Results: Ability to perform ray casting to determine the position and normal of a hit point on the mesh. On LiDAR-enabled devices, hit tests also provide semantic classification (e.g., wall, floor, ceiling, table, seat, window, door).
- Depth Texture: A texture representing the depth of the world from the camera's perspective, useful for effects like depth of field.
Requirement: The Camera object must contain a Device Tracking component with the World option enabled to accurately map the mesh to the real world.