KEMBAR78
Allow UA to constrain clip planes by Manishearth · Pull Request #802 · immersive-web/webxr · GitHub
Skip to content

Conversation

Manishearth
Copy link
Contributor

Fixes #698

For enforcing near < far I don't think we should be throwing an error due to the two-step nature of applying render states. Instead, perhaps we should set near=far or something? (and encourage UAs to warn to the console). Alternatively, we can throw an error when the pending render state is created, but that can be a bit unpredictable.

cc @cabanier

r? @toji

@toji
Copy link
Member

toji commented Aug 13, 2019

LGTM. And as the comments in #698 point out it's not actually clear that we want to prevent inverted depth ranges, so I think it's appropriate that there's not a restriction enforcing that near < far here.

@toji toji merged commit 7d857d9 into immersive-web:master Aug 13, 2019
@toji toji added this to the August 2019 milestone Aug 13, 2019
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.

Provide limits to depthNear/Far

2 participants