all repos — mgba @ 86db6fa7e2329203344dee59d984a92baa8f85cf

mGBA Game Boy Advance Emulator

change division to multiplication in gba-color shader
hunterk hunter_kaller@yahoo.com
Tue, 25 Apr 2017 22:37:48 -0500
commit

86db6fa7e2329203344dee59d984a92baa8f85cf

parent

9a78f564676de81899f47f23486488d01ea8ed6b

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M res/shaders/gba-color.shader/gba-color.fsres/shaders/gba-color.shader/gba-color.fs

@@ -30,5 +30,5 @@ 0.0, 0.0, 0.0, 1.0);

color *= adjust; screen = clamp(screen * lum, 0.0, 1.0); screen = color * screen; - gl_FragColor = pow(screen, vec4(1.0 / display_gamma + (darken_screen / 8.))); + gl_FragColor = pow(screen, vec4(1.0 / display_gamma + (darken_screen * 0.125))); }