diff options
author | Linnea Gräf <nea@nea.moe> | 2024-07-10 01:53:46 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-07-10 03:14:56 +0200 |
commit | 5a91c407d639cb2224649c2d4875d244321f77f7 (patch) | |
tree | 41fcb4cee89f993d1122442a6193582ce10bbd65 /src/main/kotlin/moe | |
parent | 4b52540924ca9c930f61d9095fcc5d09c520df1e (diff) | |
download | Firmament-5a91c407d639cb2224649c2d4875d244321f77f7.tar.gz Firmament-5a91c407d639cb2224649c2d4875d244321f77f7.tar.bz2 Firmament-5a91c407d639cb2224649c2d4875d244321f77f7.zip |
Fix lines sometimes not rendering
Diffstat (limited to 'src/main/kotlin/moe')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/util/render/RenderInWorldContext.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/util/render/RenderInWorldContext.kt b/src/main/kotlin/moe/nea/firmament/util/render/RenderInWorldContext.kt index 2db4cad..7ab03c6 100644 --- a/src/main/kotlin/moe/nea/firmament/util/render/RenderInWorldContext.kt +++ b/src/main/kotlin/moe/nea/firmament/util/render/RenderInWorldContext.kt @@ -157,9 +157,11 @@ class RenderInWorldContext private constructor( val lastNormal0 = lastNormal ?: normal lastNormal = normal buffer.vertex(matrix.positionMatrix, a.x.toFloat(), a.y.toFloat(), a.z.toFloat()) + .color(-1) .normal(matrix, lastNormal0.x, lastNormal0.y, lastNormal0.z) .next() buffer.vertex(matrix.positionMatrix, b.x.toFloat(), b.y.toFloat(), b.z.toFloat()) + .color(-1) .normal(matrix, normal.x, normal.y, normal.z) .next() } |