Skip to content

Commit

Permalink
point light bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lrsb committed Aug 17, 2020
1 parent c17367c commit 842f2db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 842f2db

Please sign in to comment.