mirror of
https://github.com/libretro/glsl-shaders.git
synced 2024-11-22 23:30:06 +00:00
ntsc-simple, fix ms/md256 mode hue, tidy parameters (#488)
* Update ntsc-simple-1.glsl * Update ntsc-simple-2.glsl
This commit is contained in:
parent
24646bfee7
commit
2840f643e6
@ -119,7 +119,7 @@ void main()
|
||||
if (system_choose == 1.0) {v_phase_alt =0.0; timer = 0.0; hue_u = -3.0; hue_v = -3.0;}
|
||||
// pce alternates every two lines
|
||||
if (system_choose == 2.0) {v_phase_alt = 1.0; timer = 0.0;}
|
||||
if (system_choose == 3.0) {v_phase_alt = 0.0; timer = 0.0;}
|
||||
if (system_choose == 3.0) {hue_u = 1.0; hue_v = 0.8; v_phase_alt = 0.0; timer = 0.0;}
|
||||
float altv = 0.0;
|
||||
if (system_choose == 4.0) {v_phase_alt = 0.0; timer = 0.0;hue_u = 1.8;
|
||||
hue_v = 1.8; altv = mod(floor(vTexCoord.y * SourceSize.y + 0.5), 2.0) * pi;}
|
||||
@ -127,7 +127,7 @@ void main()
|
||||
hue_v = -3.0; altv = mod(floor(vTexCoord.y * SourceSize.y + 0.5), 2.0) * pi;}
|
||||
if (system_choose == 6.0) {hue_u = -1.4;hue_v = -1.3;v_phase_alt = 1.0; timer = 0.0;}
|
||||
|
||||
if (anim_overr == 1.0) timer = mod(float(FrameCount),2.0);
|
||||
if (anim_overr == 1.0) timer = mod(float(FrameCount/2),2.0);
|
||||
vec3 res = COMPAT_TEXTURE(Source, vTexCoord).rgb*rgb2yuv;
|
||||
|
||||
float phase = vTexCoord.x*SourceSize.x*pi*phase_alt- vTexCoord.y*SourceSize.y*pi*v_phase_alt + timer*pi*phase_alt +altv ;
|
||||
|
@ -1,7 +1,7 @@
|
||||
#if defined(VERTEX)
|
||||
|
||||
#pragma parameter bogus "0:nes/snes 1:md 2:pce 3:ms/md256 4:ZXSp 5:c64 6:a2600" 0.0 0.0 0.0 0.0
|
||||
#pragma parameter system_choose "System choose" 0.0 0.0 6.0 1.0
|
||||
#pragma parameter system_choose "SYSTEM CHOOSE" 0.0 0.0 6.0 1.0
|
||||
#pragma parameter bogus "[ 0:NINTENDO 1:GEN 2:PCE 3:MS-MD256 4:ZXSp 5:C=64 6:A26]" 0.0 0.0 1.0 1.0
|
||||
#pragma parameter steps "Filter Size (faster)" 4.0 1.0 16.0 1.0
|
||||
#pragma parameter ntsc_sharp "NTSC Sharpness" 0.1 0.0 1.0 0.01
|
||||
#pragma parameter ntsc_sat "NTSC Saturation" 2.0 0.0 4.0 0.05
|
||||
@ -130,7 +130,7 @@ void main()
|
||||
altv = mod(floor(vTexCoord.y * SourceSize.y + 0.5), 2.0) * pi;}
|
||||
if (system_choose == 6.0) {v_phase_alt = 0.0; timer = 0.0; }
|
||||
|
||||
if (anim_overr == 1.0) timer = mod(float(FrameCount),2.0);
|
||||
if (anim_overr == 1.0) timer = mod(float(FrameCount/2),2.0);
|
||||
|
||||
vec3 res = vec3(0.0);
|
||||
float sum = 0.0;
|
||||
|
Loading…
Reference in New Issue
Block a user