Merge pull request #89 from jdgleaver/simpletex_lcd+gbc-color

[handheld] simpletex_lcd: Update GBC colour correction
This commit is contained in:
hizzlekizzle 2018-08-15 11:03:41 -05:00 committed by GitHub
commit 67f6db2744
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 18 deletions

View file

@ -8,7 +8,7 @@
[original zfast_lcd_standard code copyright (C) 2017 Greg Hogan (SoltanGris42)] [original zfast_lcd_standard code copyright (C) 2017 Greg Hogan (SoltanGris42)]
- Colour correction code taken from 'gbc-color', written by hunterk and realeased - Colour correction code taken from 'gbc-color', written by hunterk and realeased
into the public domain into the public domain, with further tweaks by Pokefan531
Other code by jdgleaver Other code by jdgleaver
@ -121,15 +121,15 @@ const float LINE_WEIGHT_B = 8.0 / 3.0;
const float INV_BG_TEXTURE_SIZE = 1.0 / BG_TEXTURE_SIZE; const float INV_BG_TEXTURE_SIZE = 1.0 / BG_TEXTURE_SIZE;
// Colour correction // Colour correction
#define CC_R 0.78824 #define CC_R 0.86629
#define CC_G 0.72941 #define CC_G 0.70857
#define CC_B 0.82 #define CC_B 0.77215
#define CC_RG 0.025 #define CC_RG 0.02429
#define CC_RB 0.12039 #define CC_RB 0.11337
#define CC_GR 0.12157 #define CC_GR 0.13361
#define CC_GB 0.12157 #define CC_GB 0.11448
#define CC_BR 0.0 #define CC_BR 0.0
#define CC_BG 0.275000 #define CC_BG 0.26714
/* /*
FRAGMENT SHADER FRAGMENT SHADER

View file

@ -8,7 +8,7 @@
[original zfast_lcd_standard code copyright (C) 2017 Greg Hogan (SoltanGris42)] [original zfast_lcd_standard code copyright (C) 2017 Greg Hogan (SoltanGris42)]
- Colour correction code taken from 'gbc-color', written by hunterk and realeased - Colour correction code taken from 'gbc-color', written by hunterk and realeased
into the public domain into the public domain, with further tweaks by Pokefan531
Other code by jdgleaver Other code by jdgleaver
@ -121,15 +121,15 @@ const float LINE_WEIGHT_B = 8.0 / 3.0;
const float INV_BG_TEXTURE_SIZE = 1.0 / BG_TEXTURE_SIZE; const float INV_BG_TEXTURE_SIZE = 1.0 / BG_TEXTURE_SIZE;
// Colour correction // Colour correction
#define CC_R 0.78824 #define CC_R 0.86629
#define CC_G 0.72941 #define CC_G 0.70857
#define CC_B 0.82 #define CC_B 0.77215
#define CC_RG 0.025 #define CC_RG 0.02429
#define CC_RB 0.12039 #define CC_RB 0.11337
#define CC_GR 0.12157 #define CC_GR 0.13361
#define CC_GB 0.12157 #define CC_GB 0.11448
#define CC_BR 0.0 #define CC_BR 0.0
#define CC_BG 0.275000 #define CC_BG 0.26714
/* /*
FRAGMENT SHADER FRAGMENT SHADER