AR camera access
Source-shaped study of the pinned webxr_ar_camera_access example: ARButton, required camera-access, Timer, a rotating cube, viewer poses, camera-bearing views, and renderer.xr.getCameraTexture().
Preparing the transparent WebGL2 AR scene and camera-texture lifecycle...
- backend
- -
- feature
- -
- texture
- -
- source
- -
- native
- -
- frames
- -
- sample
- -
- XR
- -
The AR button requests the exact required camera-access feature. Desktop QA uses a generated camera-texture adapter; native XRCamera views and opaque camera images require an AR-capable device.
The synthetic texture makes the material-map seam observable on desktop. It is not evidence of native camera passthrough, camera permission, opaque-texture sampling, or whole-example fidelity.
The source clears the cube map without a session, reads the first camera-bearing viewer view during XR, binds getCameraTexture(view.camera), and rotates the cube from Timer.getDelta().