Skip to content

Commit 8a59e9c

Browse files
committed
address review comments
1 parent 00b11b7 commit 8a59e9c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

index.bs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,7 +2592,7 @@ NOTE: situations where {{XRReferenceSpaceEvent/referenceSpace}} or {{XRReference
25922592
XRVisibilityMaskChangeEvent {#xrvisibilitymaskchangeevent-interface}
25932593
--------------
25942594

2595-
Because of features like reprojection, the entire area of the {{XRLayer}} MAY not be displayed. This event will inform the experience about the region of the {{XRView}} that is displayed to the user.
2595+
Because the frustum does not intersect precisely with the rectangular display, the entire area of the {{XRLayer}} MAY not be displayed. This event will inform the experience about the region of the {{XRView}} that is displayed to the user.
25962596

25972597
The {{XRVisibilityMaskChangeEvent}} event is fired when the user agent wants to inform the experience that the displayed area of the {{XRLayer}} changed. The experience MAY choose to only draw that region which MAY help with performance.
25982598

@@ -2602,21 +2602,27 @@ interface XRVisibilityMaskChangeEvent : Event {
26022602
constructor(DOMString type, XRVisibilityMaskChangeEventInit eventInitDict);
26032603
[SameObject] readonly attribute XRSession session;
26042604
readonly attribute XREye eye;
2605-
readonly attribute FrozenArray<DOMPointReadOnly>? polygon;
2605+
[SameObject] readonly attribute Float32Array vertices;
2606+
[SameObject] readonly attribute Uint32Array indices;
26062607
};
26072608

26082609
dictionary XRVisibilityMaskChangeEventInit : EventInit {
26092610
required XRSession session;
26102611
required XREye eye;
2611-
required sequence<DOMPointReadOnly> polygon;
2612+
required Float32Array vertices;
2613+
required Uint32Array indices;
26122614
};
26132615
</pre>
26142616

26152617
The <dfn attribute for="XRVisibilityMaskChangeEvent">session</dfn> attribute indicates the {{XRSession}} that generated the event.
26162618

26172619
The <dfn attribute for="XRVisibilityMaskChangeEvent">eye</dfn> attribute indicates which {{XREye}} the mask applies to.
26182620

2619-
The <dfn attribute for="XRVisibilityMaskChangeEvent">polygon</dfn> attribute is an optional [=/list=] of {{DOMPointReadOnly}} vertices that encompass the region of the eye's {{XRView}} that SHOULD be drawn. If this attribute is `null`, the whole region of the {{XRView}} SHOULD be drawn. The <code>Z</code> coordinate of each {{DOMPointReadOnly}} vertex in {{XRVisibilityMaskChangeEvent/polygon}} MUST be <code>-1</code>.
2621+
The <dfn attribute for="XRVisibilityMaskChangeEvent">vertices</dfn> attribute is a [=/list=] of <code>X</code>, <code>Y</code> coordinates. The experience MUST assume that the <code>Z</code> coordinate is <code>-1</code>. Each <code>X</code>, <code>Y</code>, <code>Z</code> coordinate describes a vertex.
2622+
If this array is empty, the whole region of the {{XRView}} SHOULD be drawn.
2623+
2624+
The <dfn attribute for="XRVisibilityMaskChangeEvent">indices</dfn> attribute is a [=/list=] of indices that describe the index into the vertex list described by {{XRVisibilityMaskChangeEvent/vertices}}. These indices will describe the region of the eye's {{XRView}} that SHOULD be drawn.
2625+
If this array is empty, the whole region of the {{XRView}} SHOULD be drawn.
26202626

26212627
The area MUST be drawn using the {{XRViewGeometry/projectionMatrix}} of the {{XRView}} of {{XRVisibilityMaskChangeEvent/eye}} and a default {{XRRigidTransform}}.
26222628

0 commit comments

Comments
 (0)