From c3184afb282152e77a9aa47143d8e6d2e32b93aa Mon Sep 17 00:00:00 2001 From: "yrsegal@gmail.com" Date: Fri, 30 Sep 2022 21:00:30 -0400 Subject: [PATCH] fix #248 --- .../hexcasting/fabric/FabricHexClientInitializer.kt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Fabric/src/main/java/at/petrak/hexcasting/fabric/FabricHexClientInitializer.kt b/Fabric/src/main/java/at/petrak/hexcasting/fabric/FabricHexClientInitializer.kt index 8a3859b6..280faaba 100644 --- a/Fabric/src/main/java/at/petrak/hexcasting/fabric/FabricHexClientInitializer.kt +++ b/Fabric/src/main/java/at/petrak/hexcasting/fabric/FabricHexClientInitializer.kt @@ -20,15 +20,8 @@ object FabricHexClientInitializer : ClientModInitializer { override fun onInitializeClient() { FabricPacketHandler.initClient() - WorldRenderEvents.LAST.register { ctx -> - // https://www.3dgep.com/understanding-quaternions/ - val quat = ctx.camera().rotation().copy() - quat.mul(-1f) // this should invert it? - ctx.matrixStack().pushPose() - ctx.matrixStack().mulPose(quat) - ctx.matrixStack().scale(-1f, 1f, -1f) + WorldRenderEvents.AFTER_TRANSLUCENT.register { ctx -> HexAdditionalRenderers.overlayLevel(ctx.matrixStack(), ctx.tickDelta()) - ctx.matrixStack().popPose() } HudRenderCallback.EVENT.register(HexAdditionalRenderers::overlayGui) WorldRenderEvents.START.register { ClientTickCounter.renderTickStart(it.tickDelta()) }