Klasse WorldViewMatrix
java.lang.Object
de.luckymcdev.foundryengine.client.render.WorldViewMatrix
Builds a world-space Model-View-Projection (MVP) matrix from the camera state.
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungat(float x, float y, float z) at(net.minecraft.world.phys.Vec3 pos) org.joml.Matrix4fbuild()Builds the final MVP matrix.org.joml.Matrix4fBuilds the MV matrix instead of MVP.static WorldViewMatrixfrom(net.neoforged.neoforge.client.event.RenderLevelStageEvent.AfterLevel event) Creates a builder using the current camera and projection state.rotateX(float radians) rotateY(float radians) rotateZ(float radians) scale(float s) scale(float x, float y, float z)
-
Methodendetails
-
from
public static WorldViewMatrix from(net.neoforged.neoforge.client.event.RenderLevelStageEvent.AfterLevel event) Creates a builder using the current camera and projection state. -
at
-
at
-
rotateX
-
rotateY
-
rotateZ
-
scale
-
scale
-
billboard
-
buildModelView
public org.joml.Matrix4f buildModelView()Builds the MV matrix instead of MVP. -
build
public org.joml.Matrix4f build()Builds the final MVP matrix. Uses relative translation (ModelPos - CameraPos) to prevent jitter.
-