make frustum culling 1.19.4+ only
This commit is contained in:
@@ -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);
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@ public interface IMinecraftRenderWrapper extends IBindable
|
||||
|
||||
Vec3d getCameraExactPosition();
|
||||
|
||||
Matrix4f getWorldViewMatrix();
|
||||
Mat4f getWorldViewMatrix();
|
||||
|
||||
Mat4f getDefaultProjectionMatrix(float partialTicks);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user