From b9587872d30249dffa2c073857ce1663dd8ef979 Mon Sep 17 00:00:00 2001
From: Aaron Fenyes <aaron.fenyes@fareycircles.ooo>
Date: Sat, 24 Aug 2024 11:31:22 -0700
Subject: [PATCH] Ray-caster: don't bother clearing the screen

The ray-caster triangles cover the whole viewport, so they'll completely
overdraw the previous frame.
---
 app-proto/inversive-display/src/main.rs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/app-proto/inversive-display/src/main.rs b/app-proto/inversive-display/src/main.rs
index 4575e7a..186facf 100644
--- a/app-proto/inversive-display/src/main.rs
+++ b/app-proto/inversive-display/src/main.rs
@@ -161,9 +161,7 @@ fn main() {
                 ctx.uniform1f(highlight_loc.as_ref(), highlight.get() as f32);
                 ctx.uniform1i(layer_threshold_loc.as_ref(), layer_threshold.get() as i32);
                 
-                // clear the screen and draw the scene
-                ctx.clear_color(0.0, 0.0, 0.0, 1.0);
-                ctx.clear(WebGl2RenderingContext::COLOR_BUFFER_BIT);
+                // draw the scene
                 ctx.draw_arrays(WebGl2RenderingContext::TRIANGLES, 0, VERTEX_CNT as i32);
             });
         });