Skip to content

Commit 06534f6

Browse files
authored
Merge pull request #237 from cabanier/reproject-depth
update occlusion page to allow browser based reprojection
2 parents 080d7ff + a55d8f5 commit 06534f6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

layers-samples/proj-multiview-occlusion.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<p id="mv-status"></p>
4545
<input type="checkbox" id="do_antialias" checked>antialias</input>
4646
<input type="checkbox" id="do_multiview" checked>use multiview</input>
47+
<input type="checkbox" id="do_reprojection">webgl based reprojection</input>
4748
</details>
4849
</header>
4950
<script type="module">
@@ -57,6 +58,7 @@
5758
// XR globals.
5859
let do_antialias = document.getElementById('do_antialias');
5960
let do_multiview = document.getElementById('do_multiview');
61+
let do_reprojection = document.getElementById('do_reprojection');
6062
let xrButton = null;
6163
let xrImmersiveRefSpace = null;
6264
let inlineViewerHelper = null;
@@ -147,7 +149,7 @@
147149
depthSensing: {
148150
usagePreference: ["gpu-optimized"],
149151
dataFormatPreference: ["unsigned-short"],
150-
matchDepthView: false
152+
matchDepthView: !do_reprojection
151153
}}).then((session) => {
152154
xrButton.setSession(session);
153155
session.isImmersive = true;

0 commit comments

Comments
 (0)