From 4bb6493f819a36946d808707058ccecfbb9df6dc Mon Sep 17 00:00:00 2001 From: Rik Cabanier Date: Mon, 28 Oct 2024 22:09:55 +0000 Subject: [PATCH] add test to display foveated areas --- tests/fixed-foveation.html | 553 +++++++++++++++++++++++++++++++++++++ tests/index.html | 4 + 2 files changed, 557 insertions(+) create mode 100644 tests/fixed-foveation.html diff --git a/tests/fixed-foveation.html b/tests/fixed-foveation.html new file mode 100644 index 000000000..c549cf577 --- /dev/null +++ b/tests/fixed-foveation.html @@ -0,0 +1,553 @@ + + + + + + + + + + + + + Fixed Foveation in WebXR + + +
+
+ Barebones WebXR +

+ This sample shows the areas of the foveated regions and the + strength of foveation. It also cycles through the foveation + region. + white = no foveation + red = light foveation + green = medium foveation + blue = heavy foveation + purple = maximum foveation + Back +

+ +
+
+
+

Click 'Enter XR' to see content

+
+ + + \ No newline at end of file diff --git a/tests/index.html b/tests/index.html index ac570f8b8..ecc370052 100644 --- a/tests/index.html +++ b/tests/index.html @@ -159,6 +159,10 @@

Test Pages

{ title: 'Bounded Floor', category: 'Fried Chicken', path: 'show-boundary.html', description: 'A scene that shows the boundary.' }, + + { title: 'Foveation', category: 'Fried Chicken', + path: 'fixed-foveation.html', + description: 'A scene that displays the foveated regions.' }, ]; let mainElement = document.getElementById("main");