diff options
author | Linnea Gräf <nea@nea.moe> | 2024-11-02 12:55:51 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-11-02 12:55:51 +0100 |
commit | c516c4b94710f60732bd7f2edf48b9a6832fedcb (patch) | |
tree | dfd64d40f794d31b64b382028d0a199d75f16e2f /src/main/kotlin/util | |
parent | 8b410fbdf2cffb3ceaa51bbea150f5165848bc37 (diff) | |
download | Firmament-c516c4b94710f60732bd7f2edf48b9a6832fedcb.tar.gz Firmament-c516c4b94710f60732bd7f2edf48b9a6832fedcb.tar.bz2 Firmament-c516c4b94710f60732bd7f2edf48b9a6832fedcb.zip |
Fix line flickering in ancestral spade solver
Diffstat (limited to 'src/main/kotlin/util')
-rw-r--r-- | src/main/kotlin/util/render/RenderInWorldContext.kt | 2 |
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()) |