aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/kotlin/util/render/RenderInWorldContext.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/util/render/RenderInWorldContext.kt b/src/main/kotlin/util/render/RenderInWorldContext.kt
index 0898190..e7e5d01 100644
--- a/src/main/kotlin/util/render/RenderInWorldContext.kt
+++ b/src/main/kotlin/util/render/RenderInWorldContext.kt
@@ -174,11 +174,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)
+ .color(color)
.normal(matrix, lastNormal0.x, lastNormal0.y, lastNormal0.z)
buffer.vertex(matrix.positionMatrix, b.x.toFloat(), b.y.toFloat(), b.z.toFloat())
- .color(-1)
+ .color(color)
.normal(matrix, normal.x, normal.y, normal.z)
}