From 12c775559c0004d5d062206bdd8d929120e9639c Mon Sep 17 00:00:00 2001 From: Michael Ennen Date: Sun, 21 Jul 2024 01:57:50 -0700 Subject: [PATCH] Expand FIXME. --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 232d1e3..827fb8e 100644 --- a/main.js +++ b/main.js @@ -721,7 +721,8 @@ function getNonColorBuffers(gl, moodyReport, zMultiplier) { const axisSize = 20 // FIXME: We want the line to always be on top of the surface but it can dip underneath it at extreme points. Adding 0.1 to z-coordinate is not good enough. - // We need to calculate the slope from point x -> y and use it to find amount to add so line is always on top. + // We need to calculate the slope from point x -> y and use it to find amount to add so line is always on top or have the lines use the same slope as the + // points. const positions = new Float32Array( moodyReport.vertices(zMultiplier).map(v => [v[0], v[1], v[2] + 0.1]).flat(1) // "Union jack" colored lines. .concat(triangulatedVertices)