mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-23 00:01:31 +11:00
(nes-color-decoder) Use correct level when color is 0xE and 0xF
This commit is contained in:
parent
b196ec57df
commit
4fa3dbefa4
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue