Skip to content

Commit 66c8a90

Browse files
committed
Address toji's review comments
1 parent 39b91f0 commit 66c8a90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎webxrlayers-1.bs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,14 +1878,14 @@ The author SHOULD redraw the content of the layer at the next [=XR animation fra
18781878
Depth sorting between layers {#depthsorting}
18791879
============================
18801880
By default, the {{XRRenderStateInit/layers}} array defines the order of the composition of the layers and each layer is drawn on top of the previous layer.
1881-
If an application wants to have layers that are sorted by depth, it MUST request a session with the "<dfn for="feature descriptor">depth-sort</dfn>" [=feature descriptor=].
1881+
If an application wants to have layers that are sorted by depth, it MUST request a session with the "<dfn for="feature descriptor">depth-sorted-layers</dfn>" [=feature descriptor=].
18821882

1883-
If an {{XRSession}} is created with the "[=depth-sort=]" [=feature descriptor=], {{XRProjectionLayer}}, {{XRQuadLayer}} and {{XRCylinderLayer}} layers MUST be displayed based on their depth as opposed to the location in the {{XRRenderStateInit/layers}} array.
1883+
If an {{XRSession}} is created with the "[=depth-sorted-layers=]" [=feature descriptor=], {{XRProjectionLayer}}, {{XRQuadLayer}} and {{XRCylinderLayer}} layers MUST be displayed based on their depth as opposed to the location in the {{XRRenderStateInit/layers}} array.
18841884
Other layers types MUST continue to be sorted as before.
18851885

18861886
{{XRQuadLayer}} and {{XRCylinderLayer}} layers MUST be sorted by their dimensions (for instance {{XRQuadLayerInit/width}} or {{XRCylinderLayerInit/centralAngle}}), transform and space.
18871887

1888-
{{XRProjectionLayer}} layers MUST be sorted according to the values in their {{XRWebGLSubImage/depthStencilTexture}}. This also implies that if "[=depth-sort=]" is enabled, the [=XR Compositor=] MUST make use of depth values and {{XRProjectionLayer/ignoreDepthValues}} MUST be set to `true`.
1888+
{{XRProjectionLayer}} layers MUST be sorted according to the values in their {{XRWebGLSubImage/depthStencilTexture}}. This also implies that if "[=depth-sorted-layers=]" is enabled, the [=XR Compositor=] MUST make use of depth values and {{XRProjectionLayer/ignoreDepthValues}} MUST be set to `true`.
18891889

18901890
WebXR Device API Integration {#webxrintegration}
18911891
============================
@@ -1905,7 +1905,7 @@ The <dfn attribute for="XRRenderState">layers</dfn> attribute returns an array c
19051905
the instances of {{XRLayer}} that are displayed by the [=XR Compositor=].
19061906

19071907
By default, the {{XRRenderStateInit/layers}} array defines the order of the composition of the layers. The [=XR Compositor=] MUST draw each layer
1908-
in order of its position in the array using [=source-over=] blending. Unless the "[=depth-sort=]" [=feature descriptor=] is enabled, the [=XR Compositor=] MUST NOT apply any depth sorting of the layers.
1908+
in order of its position in the array using [=source-over=] blending. Unless the "[=depth-sorted-layers=]" [=feature descriptor=] is enabled, the [=XR Compositor=] MUST NOT apply any depth sorting of the layers.
19091909

19101910
NOTE: this means that each layer can potentially overwrite the previous layers whether or not the previous layers are virtually closer to the viewer.
19111911

0 commit comments

Comments
 (0)