(nes-color-decoder) Use correct level when color is 0xE and 0xF

This commit is contained in:
Monroe88 2017-05-02 22:24:21 -05:00
parent b196ec57df
commit 4fa3dbefa4
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 b = 0.0;
// Color 0xE and 0xF are black
level = (color < 14) ? level : 1;
// Voltage levels, relative to synch voltage
float black = 0.518;
float white = 1.962;

View file

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

View file

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