summaryrefslogtreecommitdiff
path: root/src/effects/ntsc_effect.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-03-07 20:03:30 +0100
committerskal <pascal.massimino@gmail.com>2026-03-07 20:03:30 +0100
commitad9ee515d162d2aa23b64263e043d45add95615f (patch)
tree4e0e2d71d3f8675b3b63901c97a01a070cde53cb /src/effects/ntsc_effect.h
parente4851ae9f310b44dab25eb979733281002c8953d (diff)
feat(effects): add Ntsc post-process effect with fisheye distortion
WGSL-only WgslEffect implementing barrel/fisheye distortion, RGB chroma separation, scanlines, per-pixel temporal noise, rolling jitter line, vignette, and warm NTSC phosphor tint. Applied across all main sequences. handoff(Gemini): Ntsc effect added; 13 effects total, 35+1 tests expected. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/effects/ntsc_effect.h')
-rw-r--r--src/effects/ntsc_effect.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/effects/ntsc_effect.h b/src/effects/ntsc_effect.h
new file mode 100644
index 0000000..d8624ea
--- /dev/null
+++ b/src/effects/ntsc_effect.h
@@ -0,0 +1,12 @@
+// NTSC post-process effect with fisheye distortion
+#pragma once
+#include "effects/shaders.h"
+#include "gpu/wgsl_effect.h"
+
+struct Ntsc : public WgslEffect {
+ Ntsc(const GpuContext& ctx, const std::vector<std::string>& inputs,
+ const std::vector<std::string>& outputs, float start_time,
+ float end_time)
+ : WgslEffect(ctx, inputs, outputs, start_time, end_time,
+ ntsc_shader_wgsl) {}
+};