From 687b2a244284b6cc19c1c585f3cc3732703eefe6 Mon Sep 17 00:00:00 2001 From: getdls Date: Mon, 2 Jul 2018 18:10:55 +0200 Subject: [PATCH] [SM3DW] Fix lensflare --- .../280351fcf8e5949f_0000000000000000_vs.txt | 2 +- .../6d9067fd20086bc0_0000000000000000_vs.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/SuperMario3DWorld/280351fcf8e5949f_0000000000000000_vs.txt b/Source/SuperMario3DWorld/280351fcf8e5949f_0000000000000000_vs.txt index ab7d4dcc..f1702642 100644 --- a/Source/SuperMario3DWorld/280351fcf8e5949f_0000000000000000_vs.txt +++ b/Source/SuperMario3DWorld/280351fcf8e5949f_0000000000000000_vs.txt @@ -68,7 +68,7 @@ R1f.y = backupReg1f; R1f.y *= 2.0; R1f.z = 0.0; R1f.w = 1.0; -PS0f = intBitsToFloat(uf_remappedVS[0].x/resXScale) * intBitsToFloat(0x3f99999a); +PS0f = intBitsToFloat(uf_remappedVS[0].x)/resXScale * intBitsToFloat(0x3f99999a); // 1 backupReg0f = R2f.x; backupReg0f = R2f.x; diff --git a/Source/SuperMario3DWorld/6d9067fd20086bc0_0000000000000000_vs.txt b/Source/SuperMario3DWorld/6d9067fd20086bc0_0000000000000000_vs.txt index aa7e3f44..127bf9dd 100644 --- a/Source/SuperMario3DWorld/6d9067fd20086bc0_0000000000000000_vs.txt +++ b/Source/SuperMario3DWorld/6d9067fd20086bc0_0000000000000000_vs.txt @@ -72,11 +72,11 @@ R1f.y = backupReg1f; R1f.y *= 2.0; R1f.z = 0.0; R1f.w = 1.0; -PS0f = intBitsToFloat(uf_remappedVS[0].x/resXScale) + R2f.x; +PS0f = intBitsToFloat(uf_remappedVS[0].x)/resXScale + R2f.x; // 1 R0f.x = PS0f; R0f.y = R2f.y; -PV1f.z = -(intBitsToFloat(uf_remappedVS[0].x/resXScale)) + R2f.x; +PV1f.z = -(intBitsToFloat(uf_remappedVS[0].x))/resXScale + R2f.x; R3f.w = R2f.y; R4f.x = R2f.x; PS1f = R4f.x;