diff options
author | inglettronald <inglettronald@gmail.com> | 2023-07-05 05:08:00 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-07-05 05:08:00 -0500 |
commit | 5a38a3b4297709cc25c7b3e5953ea9b7c22b42ee (patch) | |
tree | e13de9bb968bfa59bb80695a2459d0977bf68eaf /src/main/kotlin/com/dulkirfabric/util/WorldRenderUtils.kt | |
parent | 35ae246d1848e1d1ef9bea9224f5d7860f4beac9 (diff) | |
download | DulkirMod-Fabric-5a38a3b4297709cc25c7b3e5953ea9b7c22b42ee.tar.gz DulkirMod-Fabric-5a38a3b4297709cc25c7b3e5953ea9b7c22b42ee.tar.bz2 DulkirMod-Fabric-5a38a3b4297709cc25c7b3e5953ea9b7c22b42ee.zip |
small ease of use refactor
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/util/WorldRenderUtils.kt')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/util/WorldRenderUtils.kt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/util/WorldRenderUtils.kt b/src/main/kotlin/com/dulkirfabric/util/WorldRenderUtils.kt index 987d3c5..4ba3ca5 100644 --- a/src/main/kotlin/com/dulkirfabric/util/WorldRenderUtils.kt +++ b/src/main/kotlin/com/dulkirfabric/util/WorldRenderUtils.kt @@ -206,7 +206,6 @@ object WorldRenderUtils { text: Text, context: WorldRenderContext, pos: Vec3d, - depthTest: Boolean = false, ) { RenderSystem.disableDepthTest() @@ -266,13 +265,13 @@ object WorldRenderUtils { textRenderer.draw( text, -textRenderer.getWidth(text).toFloat() / 2, 0f, 0xFFFFFF, false, matrix4f, vertexConsumer, - if (depthTest) TextRenderer.TextLayerType.NORMAL else TextRenderer.TextLayerType.SEE_THROUGH, + TextRenderer.TextLayerType.SEE_THROUGH, 0, LightmapTextureManager.MAX_LIGHT_COORDINATE ) textRenderer.draw( distText, -textRenderer.getWidth(distText).toFloat() / 2, 10f, 0xFFFFFF, false, matrix4f, vertexConsumer, - if (depthTest) TextRenderer.TextLayerType.NORMAL else TextRenderer.TextLayerType.SEE_THROUGH, + TextRenderer.TextLayerType.SEE_THROUGH, 0, LightmapTextureManager.MAX_LIGHT_COORDINATE ) vertexConsumer.drawCurrentLayer() |