mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-25 17:01:31 +11:00
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:
commit
1b0c8ebd43
|
@ -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