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
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -330,6 +330,7 @@ XRCompositionLayer defines a set of common attributes and behaviors across certa
330
330
331
331
attribute boolean blendTextureSourceAlpha;
332
332
attribute boolean? chromaticAberrationCorrection;
333
+
attribute boolean forceMonoPresentation;
333
334
attribute float opacity;
334
335
readonly attribute unsigned long mipLevels;
335
336
@@ -348,6 +349,11 @@ enable optical chromatic aberration correction for the layer. If the user agent
348
349
should return <code>null</code> on getting, and setting should be a <code>no-op</code>.
349
350
If the {{XRCompositionLayer/chromaticAberrationCorrection}} was changed, it will take effect at the next {{XRFrame}}.
350
351
352
+
The <dfn attribute for="XRCompositionLayer">forceMonoPresentation</dfn> attribute forces the right eye to use the same layer configuration
353
+
as the left eye. This MAY be used to remove the {{XRLayerLayout/stereo}} effect of a {{XRCompositionLayer}}. Setting this to <code>true</code> on a {{XRLayerLayout/mono}} layer has no effect.
354
+
355
+
NOTE: this attribute has no other side effects on other information that is returned by the {{XRSession}}. Only the operation of the [=XR Compositor=] is affected by this setting and experiences SHOULD continue to draw to both eyes.
356
+
351
357
The <dfn attribute for="XRCompositionLayer">opacity</dfn> attribute sets the opacity that is applied to the pixels of the layer. The [=XR Compositor=] MUST multiply each pixel (in premultiplied space) by this value.
352
358
{{XRCompositionLayer/opacity}} is <code>1.0</code> by default. Setting {{XRCompositionLayer/opacity}} to a value less than <code>0</code> will set it to <code>0</code> and setting it to a value higher than <code>1.0</code> will set it to <code>1.0</code>.
0 commit comments