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

adjust ndc and world to screen ergonomics #78

Open
wants to merge 7 commits into
base: world_to_ndc
Choose a base branch
from

Conversation

aevyrie
Copy link

@aevyrie aevyrie commented Mar 6, 2022

This adjust the ergonomics a bit to remove the requirement to pass in both image and window resources.

@mockersf
Copy link
Owner

mockersf commented May 2, 2022

this makes it possible to call with two different cameras:

let sized_target = cameraA.target.as_sized_target(windows, images);
cameraB.world_to_screen(sized_target, global_transform, world_pos)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants