diff --git a/misc/wiiu/offset_exp.gsh b/misc/wiiu/offset_exp.gsh index 26268a57b..2f30a52b6 100644 Binary files a/misc/wiiu/offset_exp.gsh and b/misc/wiiu/offset_exp.gsh differ diff --git a/misc/wiiu/ps_textured_exp.psh b/misc/wiiu/ps_textured_exp.psh index 981e2e951..7efef9245 100644 --- a/misc/wiiu/ps_textured_exp.psh +++ b/misc/wiiu/ps_textured_exp.psh @@ -31,20 +31,20 @@ ; -------- Disassembly -------------------- 00 TEX: ADDR(48) CNT(1) VALID_PIX - 0 SAMPLE R2, R2.xy0x, t0, s0 + 0 SAMPLE R1, R1.xy0x, t0, s0 01 ALU: ADDR(32) CNT(13) - 1 x: MUL ____, R0.x, R1.x - y: MUL ____, R0.z, R1.z - z: MUL ____, R0.y, R1.y - w: MUL R0.w, R0.w, R1.w - t: RECIP_IEEE ____, R2.W - 2 x: ADD R1.x, PV1.x, -C0.y - y: ADD R1.y, PV1.y, -C0.x - z: ADD R1.z, PV1.z, -C0.z - w: MUL ____, PS1, C1.x - 3 t: EXP_e ____, PV2.w CLAMP - 4 x: MULADD R0.x, R1.y, PS3, C0.x - y: MULADD R0.y, R1.x, PS3, C0.y - z: MULADD R0.z, R1.z, PS3, C0.z + 1 x: MUL ____, R0.x, R1.x + y: MUL ____, R0.z, R1.z + z: MUL ____, R0.y, R1.y + w: MUL R0.w, R0.w, R1.w + t: RECIP_IEEE ____, R2.W + 2 x: ADD R1.x, PV1.z, -C0.y + y: ADD R1.y, PV1.x, -C0.x + z: ADD R1.z, PV1.y, -C0.z + w: MUL ____, PS1, C1.x + 3 t: EXP_e ____, PV2.w CLAMP + 4 x: MULADD R0.x, R1.y, PS3, C0.x + y: MULADD R0.y, R1.x, PS3, C0.y + z: MULADD R0.z, R1.z, PS3, C0.z 02 EXP_DONE: PIX0, R0 END_OF_PROGRAM diff --git a/misc/wiiu/textured_exp.gsh b/misc/wiiu/textured_exp.gsh index 9195802f5..177fb154e 100644 Binary files a/misc/wiiu/textured_exp.gsh and b/misc/wiiu/textured_exp.gsh differ diff --git a/src/Graphics_WiiU.c b/src/Graphics_WiiU.c index d6ac1d64d..28450188a 100644 --- a/src/Graphics_WiiU.c +++ b/src/Graphics_WiiU.c @@ -283,7 +283,7 @@ static struct Vec4 fogValue; #define LOG2_E 1.44269504089f void Gfx_SetFogDensity(float value) { - fogValue.x = value * LOG2_E; + fogValue.x = -value * LOG2_E; GX2SetPixelUniformReg(PS_UNI_OFFSET_FOG, PS_UNI_COUNT_FOG, &fogValue); }