[SM3DW] Fix lensflare

This commit is contained in:
getdls 2018-07-02 18:10:55 +02:00
parent b7e05e4e45
commit 687b2a2442
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ R1f.y = backupReg1f;
R1f.y *= 2.0; R1f.y *= 2.0;
R1f.z = 0.0; R1f.z = 0.0;
R1f.w = 1.0; R1f.w = 1.0;
PS0f = intBitsToFloat(uf_remappedVS[0].x/resXScale) * intBitsToFloat(0x3f99999a); PS0f = intBitsToFloat(uf_remappedVS[0].x)/resXScale * intBitsToFloat(0x3f99999a);
// 1 // 1
backupReg0f = R2f.x; backupReg0f = R2f.x;
backupReg0f = R2f.x; backupReg0f = R2f.x;

View File

@ -72,11 +72,11 @@ R1f.y = backupReg1f;
R1f.y *= 2.0; R1f.y *= 2.0;
R1f.z = 0.0; R1f.z = 0.0;
R1f.w = 1.0; R1f.w = 1.0;
PS0f = intBitsToFloat(uf_remappedVS[0].x/resXScale) + R2f.x; PS0f = intBitsToFloat(uf_remappedVS[0].x)/resXScale + R2f.x;
// 1 // 1
R0f.x = PS0f; R0f.x = PS0f;
R0f.y = R2f.y; 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; R3f.w = R2f.y;
R4f.x = R2f.x; R4f.x = R2f.x;
PS1f = R4f.x; PS1f = R4f.x;