Files
tubestation/testing/web-platform/tests/interfaces/webxr-lighting-estimation.idl
wpt-pr-bot ad0996b4f8 Bug 1744230 [wpt PR 31873] - Sync interfaces/ with @webref/idl 2.12.1, a=testonly
Automatic update from web-platform-tests
Sync interfaces/ with @webref/idl 2.12.1

--

wpt-commits: 11ec24d28e86b8809d7f17833b7306bb5c8401ec
wpt-pr: 31873
2022-02-05 11:49:37 +00:00

40 lines
1.1 KiB
Plaintext

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: WebXR Lighting Estimation API Level 1 (https://immersive-web.github.io/lighting-estimation/)
[SecureContext, Exposed=Window]
interface XRLightProbe : EventTarget {
readonly attribute XRSpace probeSpace;
attribute EventHandler onreflectionchange;
};
enum XRReflectionFormat {
"srgba8",
"rgba16f",
};
[SecureContext, Exposed=Window]
interface XRLightEstimate {
readonly attribute Float32Array sphericalHarmonicsCoefficients;
readonly attribute DOMPointReadOnly primaryLightDirection;
readonly attribute DOMPointReadOnly primaryLightIntensity;
};
dictionary XRLightProbeInit {
XRReflectionFormat reflectionFormat = "srgba8";
};
partial interface XRSession {
Promise<XRLightProbe> requestLightProbe(optional XRLightProbeInit options = {});
readonly attribute XRReflectionFormat preferredReflectionFormat;
};
partial interface XRFrame {
XRLightEstimate? getLightEstimate(XRLightProbe lightProbe);
};
partial interface XRWebGLBinding {
WebGLTexture? getReflectionCubeMap(XRLightProbe lightProbe);
};