From 11c5af9c3f461688f20565f1c221571e6e08c6fe Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 27 Mar 2023 17:04:53 +0100 Subject: [PATCH] Fixed model flickering in first person --- .../minelittlepony/client/render/EquineRenderManager.java | 7 +++++-- .../com/minelittlepony/client/render/FrustrumCheck.java | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/client/render/EquineRenderManager.java b/src/main/java/com/minelittlepony/client/render/EquineRenderManager.java index 1e8de017..2e59b5df 100644 --- a/src/main/java/com/minelittlepony/client/render/EquineRenderManager.java +++ b/src/main/java/com/minelittlepony/client/render/EquineRenderManager.java @@ -1,6 +1,7 @@ package com.minelittlepony.client.render; import com.minelittlepony.api.model.ModelAttributes; +import com.minelittlepony.api.model.RenderPass; import com.minelittlepony.api.pony.IPony; import com.minelittlepony.api.pony.network.MsgPonyData; import com.minelittlepony.api.pony.network.fabric.Channel; @@ -11,8 +12,6 @@ import com.minelittlepony.client.model.ModelWrapper; import com.minelittlepony.client.transform.PonyPosture; import com.minelittlepony.mson.api.ModelKey; import com.minelittlepony.util.MathUtil; -import com.mojang.blaze3d.platform.GlStateManager.DstFactor; -import com.mojang.blaze3d.platform.GlStateManager.SrcFactor; import com.mojang.blaze3d.systems.RenderSystem; import java.util.Objects; @@ -46,6 +45,10 @@ public class EquineRenderManager extends Frustum { + public static final Frustum ALWAYS_VISIBLE = new Frustum(new Matrix4f(), new Matrix4f()) { + public boolean isVisible(Box bounds) { + return true; + } + }; private T entity;