这是indexloc提供的服务,不要输入任何密码
Skip to content

Allow UA to constrain clip planes #802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2019

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