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

How to update projection with camera position / rotation? #2

Closed
notchris opened this issue Apr 5, 2020 · 1 comment
Closed

How to update projection with camera position / rotation? #2

notchris opened this issue Apr 5, 2020 · 1 comment

Comments

@notchris
Copy link

notchris commented Apr 5, 2020

Great library! Wondering how I can update the projection to follow the camera position? Ideally I would never want to see a non-projected face.

@marcofugaro
Copy link
Owner

Hey @notchris thanks!
You have to the same camera as projector and reference the camera's matrix and position in the material instead of cloning them, here is a quick demo:

https://codesandbox.io/s/projector-demo-48kiz

Closing since it's out of scope of this project

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

No branches or pull requests

2 participants