Add XRRenderState

This commit is contained in:
Manish Goregaokar 2019-01-14 19:15:33 -08:00
parent 5ae562bfc3
commit 1dc7636135
3 changed files with 82 additions and 0 deletions

View 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;
};