From 387fc70f6cae6b8774e30590d426e7423a08e70f Mon Sep 17 00:00:00 2001 From: prushton2 Date: Sat, 11 Apr 2026 11:20:27 -0400 Subject: [PATCH] fixed debug where no spheres makes the screen red --- src/shaders/main.wgsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shaders/main.wgsl b/src/shaders/main.wgsl index 978c989..a1a98ce 100644 --- a/src/shaders/main.wgsl +++ b/src/shaders/main.wgsl @@ -19,8 +19,8 @@ fn main( let idx = y * uniforms.width + x; - if uniforms.sphere_count == 0u { - output[idx] = 0x00FF0000u; // red = sphere_count is 0 + if uniforms.sphere_count == 0u && uniforms.quad_count == 0u { + output[idx] = 0x00FF0000u; return; }