Skip to content

Commit 4cd8f16

Browse files
authored
Merge pull request immersive-web#294 from cabanier/forceMonoPresentation
Add support for `forceMonoPresentation`
2 parents 0c03d7b + b7f44ca commit 4cd8f16

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

webxrlayers-1.bs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ XRCompositionLayer defines a set of common attributes and behaviors across certa
330330

331331
attribute boolean blendTextureSourceAlpha;
332332
attribute boolean? chromaticAberrationCorrection;
333+
attribute boolean forceMonoPresentation;
333334
attribute float opacity;
334335
readonly attribute unsigned long mipLevels;
335336

@@ -348,6 +349,11 @@ enable optical chromatic aberration correction for the layer. If the user agent
348349
should return <code>null</code> on getting, and setting should be a <code>no-op</code>.
349350
If the {{XRCompositionLayer/chromaticAberrationCorrection}} was changed, it will take effect at the next {{XRFrame}}.
350351

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+
351357
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.
352358
{{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>.
353359

0 commit comments

Comments
 (0)