Merge pull request #57 from Monroe88/nes_fix

(nes-color-decoder) Use correct level when color is 0xE and 0xF
This commit is contained in:
hizzlekizzle 2017-05-03 08:00:15 -05:00 committed by GitHub
commit 1b0c8ebd43
3 changed files with 9 additions and 0 deletions

View file

@ -58,6 +58,9 @@ vec3 MakeRGBColor(int emphasis, int level, int color)
float g = 0.0; float g = 0.0;
float b = 0.0; float b = 0.0;
// Color 0xE and 0xF are black
level = (color < 14) ? level : 1;
// Voltage levels, relative to synch voltage // Voltage levels, relative to synch voltage
float black = 0.518; float black = 0.518;
float white = 1.962; float white = 1.962;

View file

@ -58,6 +58,9 @@ vec3 MakeRGBColor(int emphasis, int level, int color)
float g = 0.0; float g = 0.0;
float b = 0.0; float b = 0.0;
// Color 0xE and 0xF are black
level = (color < 14) ? level : 1;
// Voltage levels, relative to synch voltage // Voltage levels, relative to synch voltage
float black = 0.518; float black = 0.518;
float white = 1.962; float white = 1.962;

View file

@ -58,6 +58,9 @@ vec3 MakeRGBColor(int emphasis, int level, int color)
float g = 0.0; float g = 0.0;
float b = 0.0; float b = 0.0;
// Color 0xE and 0xF are black
level = (color < 14) ? level : 1;
// Voltage levels, relative to synch voltage // Voltage levels, relative to synch voltage
float black = 0.518; float black = 0.518;
float white = 1.962; float white = 1.962;