Skip to content

Commit 1ca736e

Browse files
committed
[Sonic Lost World] Turn Disable Post Processing into a new Darkness pack
1 parent f94ac26 commit 1ca736e

File tree

6 files changed

+20
-16
lines changed

6 files changed

+20
-16
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#extension GL_ARB_texture_gather : enable
33
#extension GL_ARB_separate_shader_objects : enable
44
// shader 1adfa527e4ea7f40
5+
// Silent Forest Zone 2
56
// start of shader inputs/outputs, predetermined by Cemu. Do not touch
67
#ifdef VULKAN
78
#define ATTR_LAYOUT(__vkSet, __location) layout(set = __vkSet, location = __location)
@@ -85,5 +86,5 @@ PV1i.z = R123i.z;
8586
// 4
8687
R3i.xyz = floatBitsToInt(vec3(intBitsToFloat(R0i.x),intBitsToFloat(R0i.y),intBitsToFloat(R0i.z)) + vec3(intBitsToFloat(PV1i.z),intBitsToFloat(PV1i.y),intBitsToFloat(PV1i.x)));
8788
// export
88-
//passPixelColor0 = vec4(intBitsToFloat(R3i.x), intBitsToFloat(R3i.y), intBitsToFloat(R3i.z), intBitsToFloat(R3i.w));
89+
passPixelColor0 = vec4(intBitsToFloat(R3i.x), intBitsToFloat(R3i.y), intBitsToFloat(R3i.z), intBitsToFloat(R3i.w)) * 1.6666666667;
8990
}
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#extension GL_ARB_texture_gather : enable
33
#extension GL_ARB_separate_shader_objects : enable
44
// shader 3c6c7691f6e2f2e4
5+
// Stages
56
// start of shader inputs/outputs, predetermined by Cemu. Do not touch
67
#ifdef VULKAN
78
#define ATTR_LAYOUT(__vkSet, __location) layout(set = __vkSet, location = __location)
@@ -71,8 +72,8 @@ R123f.y = (mul_nonIEEE(PV0f.x,R1f.w) + R2f.y);
7172
PV1f.y = R123f.y;
7273
R123f.z = (mul_nonIEEE(PV0f.y,R1f.w) + R2f.x);
7374
PV1f.z = R123f.z;
74-
// 2
75-
R3f.xyz = vec3(R0f.x,R0f.y,R0f.z) + vec3(PV1f.z,PV1f.y,PV1f.x);
75+
// 2 - Tonemapping
76+
R3f.xyz = vec3(R0f.x,R0f.y,R0f.z) + vec3(PV1f.z,PV1f.y,PV1f.x) * 1.6666666667;
7677
// export
77-
//passPixelColor0 = vec4(R3f.x, R3f.y, R3f.z, R3f.w);
78+
passPixelColor0 = vec4(R3f.x, R3f.y, R3f.z, R3f.w);
7879
}
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#extension GL_ARB_texture_gather : enable
33
#extension GL_ARB_separate_shader_objects : enable
44
// shader 4fab679c75795f90
5+
// World Map
56
// start of shader inputs/outputs, predetermined by Cemu. Do not touch
67
#ifdef VULKAN
78
#define ATTR_LAYOUT(__vkSet, __location) layout(set = __vkSet, location = __location)
@@ -53,12 +54,12 @@ int cubeMapFaceId;
5354
R0f = passParameterSem136;
5455
R1f.xyz = (texture(textureUnitPS3, R0f.xy).xyz);
5556
R0f.xyz = (texture(textureUnitPS0, R0f.xy).xyz);
56-
// 0
57+
// 0 - Tonemapping
5758
backupReg0f = R0f.x;
5859
backupReg1f = R0f.y;
5960
backupReg2f = R0f.z;
60-
R0f.xyz = vec3(R1f.x,R1f.y,R1f.z) + vec3(backupReg0f,backupReg1f,backupReg2f);
61+
R0f.xyz = vec3(R1f.x,R1f.y,R1f.z) + vec3(backupReg0f,backupReg1f,backupReg2f) * 2;
6162
R0f.w = 1.0;
6263
// export
63-
//passPixelColor0 = vec4(R0f.x, R0f.y, R0f.z, R0f.w);
64+
passPixelColor0 = vec4(R0f.x, R0f.y, R0f.z, R0f.w);
6465
}
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#extension GL_ARB_texture_gather : enable
33
#extension GL_ARB_separate_shader_objects : enable
44
// shader 91f43f263091c56d
5+
// Stages with heat waves
56
// start of shader inputs/outputs, predetermined by Cemu. Do not touch
67
#ifdef VULKAN
78
#define ATTR_LAYOUT(__vkSet, __location) layout(set = __vkSet, location = __location)
@@ -131,8 +132,8 @@ PV1f.y = R123f.y;
131132
PV0f.x = PV1f.y * intBitsToFloat(0x3e22f983);
132133
// 13
133134
PS1f = cos((PV0f.x)/0.1591549367);
134-
// 14
135-
R5f.x = (mul_nonIEEE(PS1f,intBitsToFloat(uf_remappedPS[2].w)) + 1.0);
135+
// 14 - Tonemapping
136+
R5f.x = ((mul_nonIEEE(PS1f,intBitsToFloat(uf_remappedPS[2].w)) + 1.0) * 1.6666666667);
136137
PV0f.y = mul_nonIEEE(PS1f, R126f.x);
137138
PV0f.z = mul_nonIEEE(PS1f, R127f.y);
138139
// 15
@@ -205,5 +206,5 @@ R7f.x = (mul_nonIEEE(PV1f.w,R5f.x) + R6f.x);
205206
R7f.y = (mul_nonIEEE(PV1f.z,R5f.x) + R6f.y);
206207
R7f.z = (mul_nonIEEE(PV1f.y,R5f.x) + R6f.z);
207208
// export
208-
//passPixelColor0 = vec4(R7f.x, R7f.y, R7f.z, R7f.w);
209+
passPixelColor0 = vec4(R7f.x, R7f.y, R7f.z, R7f.w);
209210
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[Definition]
2+
titleIds = 0005000010135700,000500001012B100,0005000010128F00
3+
name = Disable Post Processing Effects
4+
path = "Sonic Lost World/Workarounds/Darkness"
5+
description = Brightens up the game to work around broken tonemapping in Cemu.|Some stages will still be darker than they should, but is overall much better than before.||Made by M&&M.
6+
version = 6

src/SonicLostWorld/Workarounds/DisablePostProcessing/rules.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)