mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add XRRenderState
This commit is contained in:
parent
5ae562bfc3
commit
1dc7636135
3 changed files with 82 additions and 0 deletions
17
components/script/dom/webidls/XRRenderState.webidl
Normal file
17
components/script/dom/webidls/XRRenderState.webidl
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://immersive-web.github.io/webxr/#xrrenderstate-interface
|
||||
|
||||
dictionary XRRenderStateInit {
|
||||
double depthNear = 0.1;
|
||||
double depthFar = 1000.0;
|
||||
XRLayer? baseLayer = null;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRRenderState {
|
||||
readonly attribute double depthNear;
|
||||
readonly attribute double depthFar;
|
||||
readonly attribute XRLayer? baseLayer;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue