diff options
Diffstat (limited to 'src/effects')
| -rw-r--r-- | src/effects/ntsc_rgb.wgsl | 4 | ||||
| -rw-r--r-- | src/effects/ntsc_yiq.wgsl | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/effects/ntsc_rgb.wgsl b/src/effects/ntsc_rgb.wgsl index 09adbf1..c377d47 100644 --- a/src/effects/ntsc_rgb.wgsl +++ b/src/effects/ntsc_rgb.wgsl @@ -18,3 +18,7 @@ fn sample_ntsc_signal(uv: vec2f) -> vec4f { } #include "render/ntsc_common" + +@fragment fn fs_main(in: VertexOutput) -> @location(0) vec4f { + return render_ntsc(in.st); +} diff --git a/src/effects/ntsc_yiq.wgsl b/src/effects/ntsc_yiq.wgsl index 8ab36d3..854620b 100644 --- a/src/effects/ntsc_yiq.wgsl +++ b/src/effects/ntsc_yiq.wgsl @@ -17,3 +17,10 @@ fn sample_ntsc_signal(uv: vec2f) -> vec4f { } #include "render/ntsc_common" + +@fragment fn fs_main(in: VertexOutput) -> @location(0) vec4f { + var col = render_ntsc(in.st); + col = debug_f32(col, in.position.xy / 2., vec2f(100., 75.), uniforms.beat_time); + col = debug_str(col, in.position.xy / 2., vec2f(100., 150.), vec4u(0x48656C6Cu, 0x6F000000u, 0u, 0u), 5u); + return col; +} |
