Vec3 world_to_viewport
#14583
-
Given a world coordinate and putting it through world_to_viewport, I only get a Vec2 screen coordinate. Is there a method to get the depth, too? |
Beta Was this translation helpful? Give feedback.
Answered by
DasLixou
Aug 5, 2024
Replies: 1 comment 1 reply
-
Yes, world_to_viewport in it's body uses world_to_ndc, as you can see in comment |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sorry, didnt expect an answer anymore 😅 - I already added #14590 which gives me the required maths