You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
Rotate envmaps to be consistent with vanilla (#636)
* Start work on envmap rotation stuff * n64graphic envmap rotation working * Add comment to rotation function * Fix DLs of non 32x32 env maps, fix envmap rotation * fix metal flying vanish cap * fix metal mario's medium poly butt * new asset version for flipped env maps * added missing env textures to extract script * restore asset_needs_update * Skip asset_needs_update calls if local version matches new version * removed the goddard textures from envmap rotation --------- Co-authored-by: mineqwerty <mineqwerty25@gmail.com> Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com>
This commit is contained in:
@@ -696,21 +696,17 @@ void geo_process_camera(struct GraphNodeCamera *node) {
|
||||
// As a result, environment mapping is broken on Fast3DEX2 without the
|
||||
// changes below.
|
||||
Mat4* cameraMatrix = &gCameraTransform;
|
||||
#ifdef FIX_REFLECT_MTX
|
||||
/**
|
||||
* HackerSM64 2.1: Now uses the correct "up" vector for the guLookAtReflect call in geo_process_master_list_sub.
|
||||
* It was originally sideways in vanilla, with vanilla's environment map textures sideways to accommodate, but those
|
||||
* textures are now rotated automatically on extraction to allow for this to be fixed.
|
||||
*/
|
||||
gCurLookAt->l[0].l.dir[0] = (s8)(127.0f * (*cameraMatrix)[0][0]);
|
||||
gCurLookAt->l[0].l.dir[1] = (s8)(127.0f * (*cameraMatrix)[1][0]);
|
||||
gCurLookAt->l[0].l.dir[2] = (s8)(127.0f * (*cameraMatrix)[2][0]);
|
||||
gCurLookAt->l[1].l.dir[0] = (s8)(127.0f * -(*cameraMatrix)[0][1]);
|
||||
gCurLookAt->l[1].l.dir[1] = (s8)(127.0f * -(*cameraMatrix)[1][1]);
|
||||
gCurLookAt->l[1].l.dir[2] = (s8)(127.0f * -(*cameraMatrix)[2][1]);
|
||||
#else
|
||||
gCurLookAt->l[0].l.dir[0] = (s8)(127.0f * (*cameraMatrix)[0][0]);
|
||||
gCurLookAt->l[0].l.dir[1] = (s8)(127.0f * (*cameraMatrix)[1][0]);
|
||||
gCurLookAt->l[0].l.dir[2] = (s8)(127.0f * (*cameraMatrix)[2][0]);
|
||||
gCurLookAt->l[1].l.dir[0] = (s8)(127.0f * (*cameraMatrix)[0][1]);
|
||||
gCurLookAt->l[1].l.dir[1] = (s8)(127.0f * (*cameraMatrix)[1][1]);
|
||||
gCurLookAt->l[1].l.dir[2] = (s8)(127.0f * (*cameraMatrix)[2][1]);
|
||||
#endif
|
||||
#endif // F3DEX_GBI_2
|
||||
|
||||
// Make a copy of the view matrix and scale its translation based on WORLD_SCALE
|
||||
|
||||
Reference in New Issue
Block a user