Class Frustum
java.lang.Object
net.minecraft.client.renderer.culling.Frustum
-
Field Summary
Modifier and TypeFieldDescriptionprivate double
private double
private double
private final org.joml.FrustumIntersection
private final org.joml.Matrix4f
static final int
private org.joml.Vector4f
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
calculateFrustum
(org.joml.Matrix4f p_253909_, org.joml.Matrix4f p_254521_) private boolean
cubeInFrustum
(double p_113007_, double p_113008_, double p_113009_, double p_113010_, double p_113011_, double p_113012_) boolean
offsetToFullyIncludeCameraCube
(int p_194442_) void
prepare
(double p_113003_, double p_113004_, double p_113005_)
-
Field Details
-
OFFSET_STEP
public static final int OFFSET_STEP- See Also:
-
intersection
private final org.joml.FrustumIntersection intersection -
matrix
private final org.joml.Matrix4f matrix -
viewVector
private org.joml.Vector4f viewVector -
camX
private double camX -
camY
private double camY -
camZ
private double camZ
-
-
Constructor Details
-
Frustum
public Frustum(org.joml.Matrix4f p_254207_, org.joml.Matrix4f p_254535_) -
Frustum
-
-
Method Details
-
offsetToFullyIncludeCameraCube
-
prepare
public void prepare(double p_113003_, double p_113004_, double p_113005_) -
calculateFrustum
private void calculateFrustum(org.joml.Matrix4f p_253909_, org.joml.Matrix4f p_254521_) -
isVisible
-
cubeInFrustum
private boolean cubeInFrustum(double p_113007_, double p_113008_, double p_113009_, double p_113010_, double p_113011_, double p_113012_)
-