From b0375481da7afc119a5905fd304778d8f7e98b82 Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Wed, 15 Aug 2018 11:24:43 +0100 Subject: [PATCH] handheld > simpletex_lcd: Updated GBC colour correction to version 10.0 of Pokefan531's gbc-color shader --- .../simpletex_lcd+gbc-color-4k.slang | 18 +++++++++--------- .../simpletex_lcd+gbc-color.slang | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/handheld/shaders/simpletex_lcd/simpletex_lcd+gbc-color-4k.slang b/handheld/shaders/simpletex_lcd/simpletex_lcd+gbc-color-4k.slang index 4464597..2edfc40 100644 --- a/handheld/shaders/simpletex_lcd/simpletex_lcd+gbc-color-4k.slang +++ b/handheld/shaders/simpletex_lcd/simpletex_lcd+gbc-color-4k.slang @@ -8,7 +8,7 @@ [original zfast_lcd_standard code copyright (C) 2017 Greg Hogan (SoltanGris42)] - 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 @@ -121,15 +121,15 @@ const float LINE_WEIGHT_B = 8.0 / 3.0; const float INV_BG_TEXTURE_SIZE = 1.0 / BG_TEXTURE_SIZE; // Colour correction -#define CC_R 0.78824 -#define CC_G 0.72941 -#define CC_B 0.82 -#define CC_RG 0.025 -#define CC_RB 0.12039 -#define CC_GR 0.12157 -#define CC_GB 0.12157 +#define CC_R 0.86629 +#define CC_G 0.70857 +#define CC_B 0.77215 +#define CC_RG 0.02429 +#define CC_RB 0.11337 +#define CC_GR 0.13361 +#define CC_GB 0.11448 #define CC_BR 0.0 -#define CC_BG 0.275000 +#define CC_BG 0.26714 /* FRAGMENT SHADER diff --git a/handheld/shaders/simpletex_lcd/simpletex_lcd+gbc-color.slang b/handheld/shaders/simpletex_lcd/simpletex_lcd+gbc-color.slang index c380fc1..a1e2d91 100644 --- a/handheld/shaders/simpletex_lcd/simpletex_lcd+gbc-color.slang +++ b/handheld/shaders/simpletex_lcd/simpletex_lcd+gbc-color.slang @@ -8,7 +8,7 @@ [original zfast_lcd_standard code copyright (C) 2017 Greg Hogan (SoltanGris42)] - 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 @@ -121,15 +121,15 @@ const float LINE_WEIGHT_B = 8.0 / 3.0; const float INV_BG_TEXTURE_SIZE = 1.0 / BG_TEXTURE_SIZE; // Colour correction -#define CC_R 0.78824 -#define CC_G 0.72941 -#define CC_B 0.82 -#define CC_RG 0.025 -#define CC_RB 0.12039 -#define CC_GR 0.12157 -#define CC_GB 0.12157 +#define CC_R 0.86629 +#define CC_G 0.70857 +#define CC_B 0.77215 +#define CC_RG 0.02429 +#define CC_RB 0.11337 +#define CC_GR 0.13361 +#define CC_GB 0.11448 #define CC_BR 0.0 -#define CC_BG 0.275000 +#define CC_BG 0.26714 /* FRAGMENT SHADER