diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-09-05 23:02:20 +0200 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-09-05 23:02:20 +0200 |
| commit | 12bac5308cf1eed17f701c0f971bcd1a9d6ce060 (patch) | |
| tree | 0c29afc2c7fedec46a69551830649ce04b2288e5 | |
| parent | 9fcc4aa1831800991b3012bfaff83fbe6cf9567f (diff) | |
| download | Firmament-12bac5308cf1eed17f701c0f971bcd1a9d6ce060.tar.gz Firmament-12bac5308cf1eed17f701c0f971bcd1a9d6ce060.tar.bz2 Firmament-12bac5308cf1eed17f701c0f971bcd1a9d6ce060.zip | |
fix: incorrect tracer colours
| -rw-r--r-- | src/main/kotlin/util/render/RenderInWorldContext.kt | 4 |
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) } |
