gbc-color: Tweak the colors a bit to match real hardware better

This commit is contained in:
Monroe88 2018-02-10 14:45:50 -06:00
parent 63c49b0c34
commit b248b77cf0

View file

@ -3,7 +3,7 @@
/* /*
GBC Color Correction Shader GBC Color Correction Shader
A shader that replicates the LCD dynamics from a Game Boy Color A shader that replicates the LCD dynamics from a Game Boy Color
Color values are derived from Gambatte's color correction implementation. Color values are derived from Gambatte's color correction implementation, with some tweaks.
Based on Color Mangler Based on Color Mangler
Author: hunterk Author: hunterk
@ -25,13 +25,13 @@ layout(std140, set = 0, binding = 0) uniform UBO
#define blb 0.0 #define blb 0.0
#define r 0.78824 #define r 0.78824
#define g 0.72941 #define g 0.72941
#define b 0.66667 #define b 0.82
#define rg 0.00 #define rg 0.025
#define rb 0.18039 #define rb 0.12039
#define gr 0.12157 #define gr 0.12157
#define gb 0.12157 #define gb 0.12157
#define br 0.05882 #define br 0.0
#define bg 0.24314 #define bg 0.275000
#pragma stage vertex #pragma stage vertex