Improved Wii aspect ratio significantly

This commit is contained in:
2026-04-17 23:49:39 -05:00
parent 1dd2efa182
commit 2451d73a7c
11 changed files with 122 additions and 43 deletions
@@ -228,12 +228,13 @@ errorret_t shaderUpdateMVPDolphin() {
// Set Model/View Matrix
if(mvDirt) {
guMtxConcat(
SHADER_BOUND->matrixView,
SHADER_BOUND->matrixModel,
SHADER_BOUND->matrixModelView
);
GX_LoadPosMtxImm(SHADER_BOUND->matrixModelView, GX_PNMTX0);
// guMtxConcat(
// SHADER_BOUND->matrixView,
// SHADER_BOUND->matrixModel,
// SHADER_BOUND->matrixModelView
// );
// GX_LoadPosMtxImm(SHADER_BOUND->matrixModelView, GX_PNMTX0);
GX_LoadPosMtxImm(SHADER_BOUND->matrixView, GX_PNMTX0);
}
SHADER_BOUND->dirtyMatrix = 0;
@@ -255,7 +256,7 @@ void shaderMat4ToMtx(const mat4 inGlmMatrix, Mtx outGXMatrix) {
assertNotNull(inGlmMatrix, "Input matrix cannot be null");
assertNotNull(outGXMatrix, "Output matrix cannot be null");
for(int row = 0; row < 3; ++row) {
for(int row = 0; row < 4; ++row) {// Can perhaps be 3.
for(int col = 0; col < 4; ++col) {
outGXMatrix[row][col] = inGlmMatrix[col][row];
}