The C3D_FVec has reversed order of components (wzyx instead of xyzw), and I don't get why. The types.h has this comment before C3D_FVec declaration: /**
* @struct C3D_FVec
* @brief Float vector
*
* Matches PICA layout
*/
However, I have all my vertex data in the regular order (xyzw) and it works just fine. So why is the order reversed? Am I missing something obvious or is the comment just wrong?
Why does C3D_FVec have reversed order of components
Re: Why does C3D_FVec have reversed order of components
The PICA200 expects floating point 4-component vector uniforms to be uploaded in reverse order (w z y x). For efficiency reasons citro3d defines its C3D_FVec to match the expected layout. On the other hand, vertex data is processed by the PICA200 in the usual order (x y z w).
Donate to devkitPro - help us stay alive!
Who is online
Users browsing this forum: No registered users and 0 guests