diff options
author | ronald <inglettronald@gmail.com> | 2023-07-27 14:52:45 -0500 |
---|---|---|
committer | ronald <inglettronald@gmail.com> | 2023-07-27 14:52:45 -0500 |
commit | a8e56b478f7ab26fbf7f4c2529b3393e071f2d0e (patch) | |
tree | 8fb9c5440920eddcd850f50e9a1fcb8ac506b2e1 /src/main/kotlin/com/dulkirfabric/util/render/WorldRenderUtils.kt | |
parent | 2687d89171a56eba900b94f6e2812ecd402f0c3b (diff) | |
download | DulkirMod-Fabric-a8e56b478f7ab26fbf7f4c2529b3393e071f2d0e.tar.gz DulkirMod-Fabric-a8e56b478f7ab26fbf7f4c2529b3393e071f2d0e.tar.bz2 DulkirMod-Fabric-a8e56b478f7ab26fbf7f4c2529b3393e071f2d0e.zip |
wip again!
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/util/render/WorldRenderUtils.kt')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/util/render/WorldRenderUtils.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/util/render/WorldRenderUtils.kt b/src/main/kotlin/com/dulkirfabric/util/render/WorldRenderUtils.kt index 54ccd01..d779c23 100644 --- a/src/main/kotlin/com/dulkirfabric/util/render/WorldRenderUtils.kt +++ b/src/main/kotlin/com/dulkirfabric/util/render/WorldRenderUtils.kt @@ -15,6 +15,7 @@ import org.joml.Vector3f import org.lwjgl.opengl.GL11 import java.awt.Color import kotlin.math.max +import kotlin.math.min import kotlin.math.pow import kotlin.math.sqrt @@ -380,7 +381,7 @@ object WorldRenderUtils { matrices.push() matrices.translate(x - context.camera().pos.x, y - context.camera().pos.y, z - context.camera().pos.z) WorldRenderer.renderFilledBox(matrices, tes.buffer, 0.0, 0.0, 0.0, width, height, depth, - color.red.toFloat(), color.green.toFloat(), color.blue.toFloat(), color.alpha.toFloat()) + color.red / 255f, color.green / 255f, color.blue / 255f, color.alpha / 255f) tes.draw() RenderSystem.enableDepthTest() matrices.pop() |