ntsc s-video functions as intended

This commit is contained in:
Valerie Wolfe 2024-07-14 13:17:57 -04:00
parent 4bbcf71960
commit b8ec85d1ac

View file

@ -15,7 +15,11 @@ vec3 ntsc(vec3 color) {
float q = dot(color, vec3(0.211, -.523, 0.312)); float q = dot(color, vec3(0.211, -.523, 0.312));
// faux ntsc signal // faux ntsc signal
float carrier = 6.283 * 3.570 * gl_FragCoord.x; // 2π * 3.57MHz * x float carrier = 22.430; // 2π * 3.57MHz
#if wire == WIRE_COMPOSITE
carrier *= gl_FragCoord.x;
#endif
float phase = sin(carrier) * i + cos(carrier) * q; float phase = sin(carrier) * i + cos(carrier) * q;
float quad = cos(carrier) * i - sin(carrier) * q; float quad = cos(carrier) * i - sin(carrier) * q;