diff options
| author | skal <pascal.massimino@gmail.com> | 2026-03-11 07:13:22 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-03-11 07:13:22 +0100 |
| commit | f700a081d9a5315ef583ffca2a2c626878ca2945 (patch) | |
| tree | 70d43c3b7bdfe286aec700920f45551db8c46c8c /src/effects | |
| parent | 3ead818d35df56e6efbe3397967befba8d4bdb5d (diff) | |
factorize render_ntsc()
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; +} |
