devkitPro / opengx

OpenGL-like wrapper for Nintendo Wii/GameCube
20 stars 2 forks source link

Do not transpose the projection matrix #22

Closed mardy closed 6 months ago

mardy commented 6 months ago

The 4x4 projection matrix is correct as-is, there's no need of transposing it. As a matter of fact, transposing it was causing the scene to always be horizontally centered regardless of the left/right planes set on glFrustum().

This went unnoticed until now because most of the examples/tutorials use a simple frustum where both vertical and horizontal coordinates are set to [-1, 1].