Skip to content
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

Allow setting near/far planes and listening for view update events #41

Merged
merged 1 commit into from
Aug 22, 2019

Conversation

Manishearth
Copy link
Member

@Manishearth Manishearth commented Aug 20, 2019

r? @asajeffrey

I couldn't handle magicleap, sadly, since I can't get it to build, and it seems to manage its own projection matrices

Fixes #32

Copy link
Member

@asajeffrey asajeffrey left a comment

Choose a reason for hiding this comment

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

OK, a minor nit about keeping a dirty bit in the clip info, since most of the structs in webxr-api are intended to be immutable. Can we keep the mutable state somewhere else?

pub near: f32,
pub far: f32,
/// Was there an update that needs propagation to the client?
update: bool,
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, it would be nice if we didn't have to keep a dirty bit on the ClipPlanes itself.

@asajeffrey
Copy link
Member

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 3e6486e has been approved by asajeffrey

bors-servo pushed a commit that referenced this pull request Aug 21, 2019
Allow setting near/far planes and listening for view update events

r? @asajeffrey

I couldn't handle magicleap, sadly, since I can't get it to build, and it seems to manage its own projection matrices

Fixes #32
@bors-servo
Copy link
Contributor

⌛ Testing commit 3e6486e with merge 6d80f5a...

@jdm
Copy link
Member

jdm commented Aug 21, 2019

error[E0583]: file not found for module `utils`

  --> webxr/lib.rs:31:16

   |

31 | pub(crate) mod utils;

   |                ^^^^^

   |

   = help: name the file either utils.rs or utils/mod.rs inside the directory "webxr"

error: aborting due to previous error

@bors-servo
Copy link
Contributor

💔 Test failed - checks-travis

@Manishearth
Copy link
Member Author

@bors-servo r=asajeffrey

@bors-servo
Copy link
Contributor

📌 Commit e77822c has been approved by asajeffrey

@bors-servo
Copy link
Contributor

⌛ Testing commit e77822c with merge ee763bc...

bors-servo pushed a commit that referenced this pull request Aug 22, 2019
Allow setting near/far planes and listening for view update events

r? @asajeffrey

I couldn't handle magicleap, sadly, since I can't get it to build, and it seems to manage its own projection matrices

Fixes #32
@bors-servo
Copy link
Contributor

☀️ Test successful - checks-travis
Approved by: asajeffrey
Pushing ee763bc to master...

@bors-servo bors-servo merged commit e77822c into servo:master Aug 22, 2019
bors-servo pushed a commit to servo/servo that referenced this pull request Aug 23, 2019
Allow setting near/far clip planes

needs servo/webxr#41

r? @asajeffrey

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24018)
<!-- Reviewable:end -->
bors-servo pushed a commit to servo/servo that referenced this pull request Aug 23, 2019
Allow setting near/far clip planes

needs servo/webxr#41

r? @asajeffrey

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24018)
<!-- Reviewable:end -->
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.

Support updating near/far values
4 participants