From 842f2db3a9b5ce916edbdedec8bd7290c3462cbe Mon Sep 17 00:00:00 2001 From: lrsb Date: Mon, 17 Aug 2020 18:01:36 +0200 Subject: [PATCH] point light bug fix --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index db865bd..1e6a48e 100644 --- a/js/main.js +++ b/js/main.js @@ -37,7 +37,7 @@ function drawScene() { gl.clearColor(ambientColor[0], ambientColor[1], ambientColor[2], 1) gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT) - for (let i = 0.01; i < (events.computeMax ? 5 : events.maxCompletion); i += 0.1 / settings.flightTime) { + for (let i = 0.015; i < (events.computeMax ? 5 : events.maxCompletion); i += 0.1 / settings.flightTime) { const position = getParabolicPoint([missile.start.x, missile.start.y, missile.start.z], [missile.end.x, missile.end.y, missile.end.z], settings.height, i) const nextPosition = getParabolicPoint([missile.start.x, missile.start.y, missile.start.z],