From 5a38a3b4297709cc25c7b3e5953ea9b7c22b42ee Mon Sep 17 00:00:00 2001 From: inglettronald Date: Wed, 5 Jul 2023 05:08:00 -0500 Subject: small ease of use refactor --- src/main/kotlin/com/dulkirfabric/util/WorldRenderUtils.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/kotlin/com/dulkirfabric') 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() -- cgit