ntsc s-video functions as intended
This commit is contained in:
parent
4bbcf71960
commit
b8ec85d1ac
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue