Fix incorrect FOV and aspect during 360 render on 1.16+

This commit is contained in:
Jonas Herzig
2022-03-06 10:23:53 +01:00
parent 1efb17e144
commit ee6b53b247
2 changed files with 2 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(GameRenderer.class)
public abstract class Mixin_Omnidirectional_Camera implements EntityRendererHandler.IEntityRenderer {
@Redirect(method = "method_22973", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/math/Matrix4f;viewboxMatrix(DFFF)Lnet/minecraft/util/math/Matrix4f;"))
@Redirect(method = "getBasicProjectionMatrix", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/math/Matrix4f;viewboxMatrix(DFFF)Lnet/minecraft/util/math/Matrix4f;"))
private Matrix4f replayModRender_perspective$0(double fovY, float aspect, float zNear, float zFar) {
return replayModRender_perspective((float) fovY, aspect, zNear, zFar);
}

View File

@@ -1 +1,2 @@
net.minecraft.client.network.ClientPlayerEntity getUnderwaterVisibility() method_3140()
net.minecraft.client.render.GameRenderer getBasicProjectionMatrix() method_22973()