WebXR Raw Camera Access Module
Jump to navigation
Jump to search
Status | CG-REPORT |
---|---|
Last Updated | 24 June 2021 |
Editor(s) | Piotr Bialecki |
CG or WG? | CG |
The WebXR Raw Camera Access module provides a means to access the raw camera image displayed behind an immersive-ar session, when the device is responsible for rendering that camera image.
WebIDL[edit]
partial interface XRView {
[SameObject] readonly attribute XRCamera? camera;
};
[SecureContext, Exposed=Window]
interface XRCamera {
readonly attribute unsigned long width;
readonly attribute unsigned long height;
};
partial interface XRWebGLBinding {
WebGLTexture? getCameraImage(XRCamera camera);
};