Skip to content

Add support for foveateBoundTexture + small bikeshed nits#312

Merged
cabanier merged 3 commits intoimmersive-web:mainfrom
cabanier:foveateBoundTexture
Apr 4, 2025
Merged

Add support for foveateBoundTexture + small bikeshed nits#312
cabanier merged 3 commits intoimmersive-web:mainfrom
cabanier:foveateBoundTexture

Conversation

@cabanier
Copy link
Copy Markdown
Member

@cabanier cabanier commented Mar 25, 2025

First pass at adding support for foveateBoundTexture.
I still need to investigate how I can amend the spec to remove the foveation.


Preview | Diff

@cabanier cabanier requested review from AdaRoseCannon and toji March 25, 2025 00:16
@cabanier cabanier force-pushed the foveateBoundTexture branch from 6900516 to 6cd417f Compare March 25, 2025 00:27
webxrlayers-1.bs Outdated
1. If |fixed_foveation| is less than <code>0</code>, set it to <code>0</code>.
1. If |fixed_foveation| is more than <code>1</code>, set it to <code>1</code>.
1. If no texture is bound to |target| in |binding|'s [=XRWebGLBinding/context=], throw an {{InvalidStateError}} and abort these steps.
1. Apply |fixed_foveation| to |target| using |binding|'s [=XRWebGLBinding/context=].
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this step needs more detail, but you probably already knew that. :)

Specifically, we should be specifying the relationship between the float and how much foveation is applied (is 0 the highest quality or 1? Does setting the highest quality imply that foveation is removed?), make it clear what aspects of foveation are determined by the implementation, etc.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I can refer to the WebXR spec's definition of fixedFoveation.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would probably be sufficient, yeah.

@cabanier cabanier force-pushed the foveateBoundTexture branch from ea8662f to e6d212f Compare April 4, 2025 15:56
Copy link
Copy Markdown
Member

@toji toji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the updates! (And yeah, the target arg is necessary, thanks for catching that.)

@cabanier cabanier merged commit 66f1173 into immersive-web:main Apr 4, 2025
2 checks passed
@cabanier cabanier deleted the foveateBoundTexture branch April 4, 2025 17:16
github-actions bot added a commit that referenced this pull request Apr 4, 2025
SHA: 66f1173
Reason: push, by cabanier

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to cabanier/layers that referenced this pull request Sep 10, 2025
SHA: 66f1173
Reason: push, by cabanier

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants