Skip to content

adjust ndc and world to screen ergonomics#78

Open
aevyrie wants to merge 7 commits intomockersf:world_to_ndcfrom
aevyrie:pr/mockersf/4041
Open

adjust ndc and world to screen ergonomics#78
aevyrie wants to merge 7 commits intomockersf:world_to_ndcfrom
aevyrie:pr/mockersf/4041

Conversation

@aevyrie
Copy link
Copy Markdown

@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
Copy Markdown
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