From 5a91c407d639cb2224649c2d4875d244321f77f7 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 10 Jul 2024 01:53:46 +0200 Subject: Fix lines sometimes not rendering --- src/main/kotlin/moe/nea/firmament/util/render/RenderInWorldContext.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main') 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() } -- cgit