This commit is contained in:
yrsegal@gmail.com 2022-09-30 21:00:30 -04:00
parent 6e6a2f60ae
commit c3184afb28

View file

@ -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()) }