make frustum culling 1.19.4+ only

This commit is contained in:
NULL511
2024-01-26 14:43:04 -05:00
parent 5e924a00b1
commit d0822213d5
2 changed files with 5 additions and 2 deletions
@@ -334,9 +334,12 @@ public class LodRenderer
{
// TODO: will also need a diff matrix for iris shadow pass!
Matrix4f matWorldView = new Matrix4f()
.setTransposed(MC_RENDER.getWorldViewMatrix().getValuesAsArray());
Matrix4fc matWorldViewProjection = new Matrix4f()
.setTransposed(projectionMatrix.getValuesAsArray())
.mul(MC_RENDER.getWorldViewMatrix());
.mul(matWorldView);
Vec3f viewDir = this.getLookVector();
this.bufferHandler.buildRenderListAndUpdateSections(clientLevelWrapper, matWorldViewProjection, viewDir);
@@ -55,7 +55,7 @@ public interface IMinecraftRenderWrapper extends IBindable
Vec3d getCameraExactPosition();
Matrix4f getWorldViewMatrix();
Mat4f getWorldViewMatrix();
Mat4f getDefaultProjectionMatrix(float partialTicks);