diff --git a/CHANGES b/CHANGES index ddb5d748c..73a55ce82 100644 --- a/CHANGES +++ b/CHANGES @@ -9,6 +9,7 @@ Bugfixes: - SDL: Fix joystick initialization on BS - SDL: Fix potential joystick crash in games with rumble - Qt: Fix initial state of key mapping + - Shaders: Fix AGS-001 shader with some bad drivers Misc: - GBA: Slightly optimize GBAProcessEvents - Qt: Add preset for DualShock 4 diff --git a/res/shaders/ags001.shader/ags001-light.fs b/res/shaders/ags001.shader/ags001-light.fs index 5d2e6f8a5..a271de9e3 100644 --- a/res/shaders/ags001.shader/ags001-light.fs +++ b/res/shaders/ags001.shader/ags001-light.fs @@ -13,7 +13,7 @@ void main() { float dc = pow(decay, -lightBrightness); float s = (sp - dc) / (sp + dc); vec2 radius = (texCoord.st - vec2(0.5, 0.5)) * vec2(coeff * s); - radius = pow(radius, vec2(4.0)); + radius = pow(abs(radius), vec2(4.0)); vec3 bleed = vec3(0.12, 0.14, 0.19); bleed += (dot(radius, radius) + vec3(0.02, 0.03, 0.05)) * vec3(0.14, 0.18, 0.2);