You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: webxrlayers-1.bs
-13Lines changed: 0 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -329,7 +329,6 @@ XRCompositionLayer defines a set of common attributes and behaviors across certa
329
329
readonly attribute XRLayerLayout layout;
330
330
331
331
attribute boolean blendTextureSourceAlpha;
332
-
attribute boolean? chromaticAberrationCorrection;
333
332
attribute boolean forceMonoPresentation;
334
333
attribute float opacity;
335
334
readonly attribute unsigned long mipLevels;
@@ -344,11 +343,6 @@ The <dfn attribute for="XRCompositionLayer">layout</dfn> attribute returns the l
344
343
345
344
The <dfn attribute for="XRCompositionLayer">blendTextureSourceAlpha</dfn> attribute enables the layer’s texture alpha channel.
346
345
347
-
The <dfn attribute for="XRCompositionLayer">chromaticAberrationCorrection</dfn> attribute is a hint for the [=XR Compositor=] to
348
-
enable optical chromatic aberration correction for the layer. If the user agent or device does not support this attribute, they
349
-
should return <code>null</code> on getting, and setting should be a <code>no-op</code>.
350
-
If the {{XRCompositionLayer/chromaticAberrationCorrection}} was changed, it will take effect at the next {{XRFrame}}.
351
-
352
346
The <dfn attribute for="XRCompositionLayer">forceMonoPresentation</dfn> attribute forces the right eye to use the same layer configuration
353
347
as the left eye. This MUST send a signal to the [=XR Compositor=] to remove the {{XRLayerLayout/stereo}} effect of this {{XRCompositionLayer}}. Setting this to <code>true</code> on a {{XRLayerLayout/mono}} layer has no effect.
354
348
@@ -385,13 +379,6 @@ or a {{WebGL2RenderingContext}} |context|, the user agent MUST run the following
385
379
1. Set [=this=][=XRCompositionLayer/session=] to |session|.
386
380
1. If |context| is defined, set [=this=][=XRCompositionLayer/context=] to |context|.
387
381
1. Set [=this=]{{XRCompositionLayer/blendTextureSourceAlpha}} to <code>true</code>.
388
-
1. Initialize [=this=]{{XRCompositionLayer/chromaticAberrationCorrection}} as follows:
389
-
<dl class="switch">
390
-
<dt class="switch">If the user agent supports chromatic aberration correction
391
-
<dd> Set [=this=]{{XRCompositionLayer/chromaticAberrationCorrection}} to <code>true</code> or <code>false</code> depending on the user agent's preference.
392
-
<dt> Otherwise
393
-
<dd> Set [=this=]{{XRCompositionLayer/chromaticAberrationCorrection}} to <code>null</code>.
394
-
</dl>
395
382
1. Set [=this=]{{XRCompositionLayer/opacity}} to <code>1.0</code>.
0 commit comments