Replies: 1 comment
-
DrawRectangleRec(rec, RED); should be probably called before BeginMode3D(camera); or after EndMode3D(); Of course you can only pass screen coordinates there, not world coordinates. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to start a simple 2D platformer and I want to use a 3D Orthographic camera, because I prefer a "world based" coordinate system. The problem is that I'm drawing a rect using that view but I can't see it. But instead, if I draw a 3D cube it works perfectly fine. I don't know how the things work behind the scenes here, but a rect should be just a quad with a texture, why it behaves different than the cube?
Beta Was this translation helpful? Give feedback.
All reactions