WebXR Augmented Reality Module: Difference between revisions
Jump to navigation
Jump to search
(Add boilerplate information) |
(Basic summary + WebIDL) |
||
Line 7: | Line 7: | ||
|group = WG | |group = WG | ||
}} | }} | ||
The WebXR Augmented Reality Module expands the [[WebXR Device API]] with functionality specific to AR devices, such as defining blend modes for rendered pixels and interaction modes to accommodate different AR device form factors, i.e. phone screen vs. head-mounted. | |||
== WebIDL == | |||
<syntaxhighlight lang="idl"> | |||
enum XREnvironmentBlendMode { | |||
"opaque", | |||
"alpha-blend", | |||
"additive" | |||
}; | |||
partial interface XRSession { | |||
// Attributes | |||
readonly attribute XREnvironmentBlendMode environmentBlendMode; | |||
}; | |||
enum XRInteractionMode { | |||
"screen-space", | |||
"world-space", | |||
}; | |||
partial interface XRSession { | |||
// Attributes | |||
readonly attribute XRInteractionMode interactionMode; | |||
}; | |||
partial interface XRView { | |||
readonly attribute boolean isFirstPersonObserver; | |||
}; | |||
</syntaxhighlight> | |||
== External Links == | == External Links == |
Revision as of 17:34, 7 July 2022
Status | WD |
---|---|
Last Updated | 26 April 2022 |
Editor(s) | Brandon Jones, Manish Goregaokar, Rik Cabanier |
Former Editor(s) | Nell Waliczek |
CG or WG? | WG |
The WebXR Augmented Reality Module expands the WebXR Device API with functionality specific to AR devices, such as defining blend modes for rendered pixels and interaction modes to accommodate different AR device form factors, i.e. phone screen vs. head-mounted.
WebIDL
enum XREnvironmentBlendMode {
"opaque",
"alpha-blend",
"additive"
};
partial interface XRSession {
// Attributes
readonly attribute XREnvironmentBlendMode environmentBlendMode;
};
enum XRInteractionMode {
"screen-space",
"world-space",
};
partial interface XRSession {
// Attributes
readonly attribute XRInteractionMode interactionMode;
};
partial interface XRView {
readonly attribute boolean isFirstPersonObserver;
};