Skip to content

Commit

Permalink
move from matrix to view
Browse files Browse the repository at this point in the history
  • Loading branch information
cabanier committed Sep 30, 2024
1 parent 44f7ba3 commit ceec341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ interface XRDepthInformation {

[SameObject] readonly attribute XRRigidTransform normDepthBufferFromNormView;
readonly attribute float rawValueToMeters;
readonly attribute Float32Array? projectionMatrix;
readonly attribute XRView? view;
};
</script>

Expand All @@ -321,7 +321,7 @@ Note: if the applications intend to use the resulting depth buffer for texturing

The {{XRDepthInformation/rawValueToMeters}} attribute contains the scale factor by which the raw depth values from a [=XRDepthInformation/depth buffer=] must be multiplied in order to get the depth in meters.

The optional {{XRDepthInformation/projectionMatrix}} attribute contains the projection matrix that was used when the {{XRSystem}} calculated the {{XRDepthInformation}}. This attribute MAY be used by experiences to better align with the real world. If the {{XRDepthInformation/projectionMatrix}} is not provided, the user MUST assume it is the same as the {{XRView/projectionMatrix}}.
The optional {{XRDepthInformation/view}} attribute contains the {{XRView}} that was active when the {{XRSystem}} calculated the {{XRDepthInformation}}. This attribute MAY be used by experiences to better align with the real world. If the {{XRDepthInformation/view}} is not provided, the user MUST assume it is the same as the one from the current {{XRFrame}}'s {{XRViewerPose}}.

Each {{XRDepthInformation}} has an associated <dfn for=XRDepthInformation>view</dfn> that stores {{XRView}} from which the depth information instance was created.

Expand Down

0 comments on commit ceec341

Please sign in to comment.