Skip to content

Commit 108c57c

Browse files
authored
Merge pull request #1406 from msub2/passthrough-typo
pasthrough -> passthrough
2 parents 90be248 + 37c941e commit 108c57c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ When this method is invoked, the user agent MUST run the following steps:
775775
1. Run [=update the pending layers state=] with |session| and |newState|.
776776
1. Let |activeState| be |session|'s [=active render state=].
777777
1. If |session|'s [=pending render state=] is `null`, set it to a copy of |activeState|.
778-
1. If |newState|'s {{XRRenderStateInit/pasthroughFullyObscured}} value is set, set |session|'s [=pending render state=]'s {{XRRenderState/pasthroughFullyObscured}} to |newState|'s {{XRRenderStateInit/pasthroughFullyObscured}}.
778+
1. If |newState|'s {{XRRenderStateInit/passthroughFullyObscured}} value is set, set |session|'s [=pending render state=]'s {{XRRenderState/passthroughFullyObscured}} to |newState|'s {{XRRenderStateInit/passthroughFullyObscured}}.
779779
1. If |newState|'s {{XRRenderStateInit/depthNear}} value is set, set |session|'s [=pending render state=]'s {{XRRenderState/depthNear}} to |newState|'s {{XRRenderStateInit/depthNear}}.
780780
1. If |newState|'s {{XRRenderStateInit/depthFar}} value is set, set |session|'s [=pending render state=]'s {{XRRenderState/depthFar}} to |newState|'s {{XRRenderStateInit/depthFar}}.
781781
1. If |newState|'s {{XRRenderStateInit/inlineVerticalFieldOfView}} is set, set |session|'s [=pending render state=]'s {{XRRenderState/inlineVerticalFieldOfView}} to |newState|'s {{XRRenderStateInit/inlineVerticalFieldOfView}}.
@@ -998,7 +998,7 @@ An {{XRRenderState}} represents a set of configurable values which affect how an
998998
dictionary XRRenderStateInit {
999999
double depthNear;
10001000
double depthFar;
1001-
boolean pasthroughFullyObscured;
1001+
boolean passthroughFullyObscured;
10021002
double inlineVerticalFieldOfView;
10031003
XRWebGLLayer? baseLayer;
10041004
sequence<XRLayer>? layers;
@@ -1007,7 +1007,7 @@ dictionary XRRenderStateInit {
10071007
[SecureContext, Exposed=Window] interface XRRenderState {
10081008
readonly attribute double depthNear;
10091009
readonly attribute double depthFar;
1010-
readonly attribute boolean? pasthroughFullyObscured;
1010+
readonly attribute boolean? passthroughFullyObscured;
10111011
readonly attribute double? inlineVerticalFieldOfView;
10121012
readonly attribute XRWebGLLayer? baseLayer;
10131013
};
@@ -1026,7 +1026,7 @@ When an {{XRRenderState}} object is created for an {{XRSession}} |session|, the
10261026
1. Let |state| be a [=new=] {{XRRenderState}} object in the [=relevant realm=] of |session|.
10271027
1. Initialize |state|'s {{XRRenderState/depthNear}} to `0.1`.
10281028
1. Initialize |state|'s {{XRRenderState/depthFar}} to `1000.0`.
1029-
1. Initialize |state|'s {{XRRenderState/pasthroughFullyObscured}} to `false`.
1029+
1. Initialize |state|'s {{XRRenderState/passthroughFullyObscured}} to `false`.
10301030
1. Initialize |state|'s {{XRRenderState/inlineVerticalFieldOfView}} as follows:
10311031
<dl class="switch">
10321032
: If |session| is an [=inline session=]:
@@ -1046,7 +1046,7 @@ The <dfn attribute for="XRRenderState">depthNear</dfn> attribute defines the dis
10461046

10471047
Note: Typically when constructing a perspective projection matrix for rendering the developer specifies the viewing frustum and the near and far clip planes. When displaying to an [=immersive XR device=] the correct viewing frustum is determined by some combination of the optics, displays, and cameras being used. The near and far clip planes, however, may be modified by the application since the appropriate values depend on the type of content being rendered.
10481048

1049-
The <dfn attribute for="XRRenderState">pasthroughFullyObscured</dfn> attribute is a hint to the {{XRSystem}} from the author to indicate that they intend to completely cover the viewport with virtual content. The author SHOULD set this flag back to <code>false</code> once the viewport is no longer covered by opaque pixels.
1049+
The <dfn attribute for="XRRenderState">passthroughFullyObscured</dfn> attribute is a hint to the {{XRSystem}} from the author to indicate that they intend to completely cover the viewport with virtual content. The author SHOULD set this flag back to <code>false</code> once the viewport is no longer covered by opaque pixels.
10501050

10511051
NOTE: the {{XRSystem}} MAY use this as a hint to temporarily disable passthrough. On devices with see-through optics, the user will continue to see their environment and this flag will have no effect.
10521052

0 commit comments

Comments
 (0)