mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-12-26 09:51:49 +01:00
Add PC preset to SLW brightness workaround
This commit is contained in:
parent
c1b904314d
commit
2b7c07df06
@ -13,6 +13,12 @@
|
||||
#define GET_FRAGCOORD() vec4(gl_FragCoord.xy*uf_fragCoordScale,gl_FragCoord.zw)
|
||||
#endif
|
||||
// shader 7658289ba65cb755
|
||||
#define preset $preset
|
||||
#if (preset == 0)
|
||||
const float brightness = (16.0/9.0);
|
||||
#elif (preset == 1)
|
||||
const float brightness = 2.2;
|
||||
#endif
|
||||
#ifdef VULKAN
|
||||
layout(set = 1, binding = 2) uniform ufBlock
|
||||
{
|
||||
@ -73,5 +79,5 @@ R2f.x = mul_nonIEEE(R1f.x, PV0f.x);
|
||||
R2f.y = mul_nonIEEE(R1f.y, PV0f.x);
|
||||
R2f.z = mul_nonIEEE(R1f.z, PV0f.x);
|
||||
// export
|
||||
passPixelColor0 = vec4(R2f.x, R2f.y, R2f.z, R2f.w) * (16.0/9.0);
|
||||
passPixelColor0 = vec4(R2f.x, R2f.y, R2f.z, R2f.w) * brightness;
|
||||
}
|
||||
|
@ -13,6 +13,12 @@
|
||||
#define GET_FRAGCOORD() vec4(gl_FragCoord.xy*uf_fragCoordScale,gl_FragCoord.zw)
|
||||
#endif
|
||||
// shader 971a39bb79e32fd1
|
||||
#define preset $preset
|
||||
#if (preset == 0)
|
||||
const float brightness = (16.0/9.0);
|
||||
#elif (preset == 1)
|
||||
const float brightness = 2.2;
|
||||
#endif
|
||||
#ifdef VULKAN
|
||||
layout(set = 1, binding = 3) uniform ufBlock
|
||||
{
|
||||
@ -131,5 +137,5 @@ PV0f.w = -(PV1f.y) + 1.0;
|
||||
// 9
|
||||
R3f.w = (mul_nonIEEE(PV0f.w,R1f.z) + R127f.y);
|
||||
// export
|
||||
passPixelColor0 = vec4(R3f.x, R3f.y, R3f.z, R3f.w) * (16.0/9.0);
|
||||
passPixelColor0 = vec4(R3f.x, R3f.y, R3f.z, R3f.w) * brightness;
|
||||
}
|
||||
|
@ -13,6 +13,12 @@
|
||||
#define GET_FRAGCOORD() vec4(gl_FragCoord.xy*uf_fragCoordScale,gl_FragCoord.zw)
|
||||
#endif
|
||||
// shader e1d2a971c93cd82a
|
||||
#define preset $preset
|
||||
#if (preset == 0)
|
||||
const float brightness = (16.0/9.0);
|
||||
#elif (preset == 1)
|
||||
const float brightness = 2.2;
|
||||
#endif
|
||||
#ifdef VULKAN
|
||||
layout(set = 1, binding = 3) uniform ufBlock
|
||||
{
|
||||
@ -117,5 +123,5 @@ PV1f.w = min(PV0f.y, PV0f.z);
|
||||
// 8
|
||||
R0f.w = R127f.w + PV1f.w;
|
||||
// export
|
||||
passPixelColor0 = vec4(R0f.x, R0f.y, R0f.z, R0f.w) * (16.0/9.0);
|
||||
passPixelColor0 = vec4(R0f.x, R0f.y, R0f.z, R0f.w) * brightness;
|
||||
}
|
||||
|
@ -2,5 +2,13 @@
|
||||
titleIds = 0005000010135700,000500001012B100,0005000010128F00
|
||||
name = Brightness
|
||||
path = "Sonic Lost World/Workarounds/Brightness"
|
||||
description = This fixes the game from being too dark
|
||||
description = This fixes the game from looking too dark.
|
||||
version = 4
|
||||
|
||||
[Preset]
|
||||
name = Wii U (Default)
|
||||
$preset:int = 0
|
||||
|
||||
[Preset]
|
||||
name = PC
|
||||
$preset:int = 1
|
||||
|
Loading…
Reference in New Issue
Block a user