fix #248
This commit is contained in:
parent
6e6a2f60ae
commit
c3184afb28
1 changed files with 1 additions and 8 deletions
|
@ -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()) }
|
||||
|
|
Loading…
Reference in a new issue