From c4599824c6118e7f017fcc971143cdf48cc90840 Mon Sep 17 00:00:00 2001 From: Luca Conte Date: Sun, 27 Apr 2025 16:48:29 +0200 Subject: [PATCH] adjust origin cube and camera drawing thresholds --- src/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script.js b/src/script.js index 185e6c0..9d5113d 100644 --- a/src/script.js +++ b/src/script.js @@ -589,7 +589,7 @@ async function draw() { gl.bindBuffer(gl.ARRAY_BUFFER, cameraVertexBuffer); setAttribPointers(); - if (displayMatricesVirtually && interpolateProjection < 0.01) { + if (displayMatricesVirtually && interpolateProjection <= 0) { gl.drawArrays(gl.TRIANGLES, 0, cameraVertices.length / 6); } @@ -618,7 +618,7 @@ async function draw() { // draw origin cube - if (interpolateProjection < 0.99 && interpolateLookAt > 0.01) { + if (interpolateProjection < 1 && interpolateLookAt > 0) { gl.bindBuffer(gl.ARRAY_BUFFER, lineCubeVertexBuffer); setAttribPointers(); gl.uniform3fv(colorOverrideLocation, [1, 0, 0]);