summaryrefslogtreecommitdiff
path: root/src/effects
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects')
-rw-r--r--src/effects/ntsc.wgsl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/effects/ntsc.wgsl b/src/effects/ntsc.wgsl
index 3c4a2bf..b333163 100644
--- a/src/effects/ntsc.wgsl
+++ b/src/effects/ntsc.wgsl
@@ -13,7 +13,6 @@ fn fisheye(uv: vec2f, strength: f32) -> vec2f {
let r2 = c * c;
return uv * 1.03 * (1.0 + vec2f(.1, .24) * strength * r2);
}
-
@fragment fn fs_main(in: VertexOutput) -> @location(0) vec4f {
let t = uniforms.time;
@@ -22,7 +21,7 @@ fn fisheye(uv: vec2f, strength: f32) -> vec2f {
// Black outside screen edges
if (uv.x < 0.0 || uv.x > 1.0 || uv.y < 0.0 || uv.y > 1.0) {
- return vec4f(0.0, 0.0, 0.0, 1.0);
+ discard; // return vec4f(0.0, 0.0, 0.0, 1.0);
}
// Chroma separation (horizontal RGB bleeding)