mirror of
https://github.com/libretro/mgba.git
synced 2024-11-23 16:10:01 +00:00
Shaders: Fix AGS-001 shader with some bad drivers
This commit is contained in:
parent
340aed5142
commit
03f20436b5
1
CHANGES
1
CHANGES
@ -12,6 +12,7 @@ Bugfixes:
|
|||||||
- SDL: Fix potential joystick crash in games with rumble
|
- SDL: Fix potential joystick crash in games with rumble
|
||||||
- SDL: Fix axes being mapped wrong
|
- SDL: Fix axes being mapped wrong
|
||||||
- Qt: Fix initial state of key mapping
|
- Qt: Fix initial state of key mapping
|
||||||
|
- Shaders: Fix AGS-001 shader with some bad drivers
|
||||||
Misc:
|
Misc:
|
||||||
- GBA: Slightly optimize GBAProcessEvents
|
- GBA: Slightly optimize GBAProcessEvents
|
||||||
- Qt: Add preset for DualShock 4
|
- Qt: Add preset for DualShock 4
|
||||||
|
@ -13,7 +13,7 @@ void main() {
|
|||||||
float dc = pow(decay, -lightBrightness);
|
float dc = pow(decay, -lightBrightness);
|
||||||
float s = (sp - dc) / (sp + dc);
|
float s = (sp - dc) / (sp + dc);
|
||||||
vec2 radius = (texCoord.st - vec2(0.5, 0.5)) * vec2(coeff * s);
|
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);
|
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);
|
bleed += (dot(radius, radius) + vec3(0.02, 0.03, 0.05)) * vec3(0.14, 0.18, 0.2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user