aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/render/RenderInWorldContext.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-02 12:55:51 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-02 12:55:51 +0100
commitc516c4b94710f60732bd7f2edf48b9a6832fedcb (patch)
treedfd64d40f794d31b64b382028d0a199d75f16e2f /src/main/kotlin/util/render/RenderInWorldContext.kt
parent8b410fbdf2cffb3ceaa51bbea150f5165848bc37 (diff)
downloadFirmament-c516c4b94710f60732bd7f2edf48b9a6832fedcb.tar.gz
Firmament-c516c4b94710f60732bd7f2edf48b9a6832fedcb.tar.bz2
Firmament-c516c4b94710f60732bd7f2edf48b9a6832fedcb.zip
Fix line flickering in ancestral spade solver
Diffstat (limited to 'src/main/kotlin/util/render/RenderInWorldContext.kt')
-rw-r--r--src/main/kotlin/util/render/RenderInWorldContext.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/util/render/RenderInWorldContext.kt b/src/main/kotlin/util/render/RenderInWorldContext.kt
index 75f2fad..b61b9aa 100644
--- a/src/main/kotlin/util/render/RenderInWorldContext.kt
+++ b/src/main/kotlin/util/render/RenderInWorldContext.kt
@@ -172,7 +172,7 @@ class RenderInWorldContext private constructor(
points.zipWithNext().forEach { (a, b) ->
val normal = Vector3f(b.x.toFloat(), b.y.toFloat(), b.z.toFloat())
.sub(a.x.toFloat(), a.y.toFloat(), a.z.toFloat())
-// .normalize()
+ .normalize()
val lastNormal0 = lastNormal ?: normal
lastNormal = normal
buffer.vertex(matrix.positionMatrix, a.x.toFloat(), a.y.toFloat(), a.z.toFloat())