Package foundry.veil.api.client.render
Class VeilLevelPerspectiveRenderer
java.lang.Object
foundry.veil.api.client.render.VeilLevelPerspectiveRenderer
Renders the level from different perspectives.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static void
render
(AdvancedFbo framebuffer, @Nullable net.minecraft.world.entity.Entity cameraEntity, org.joml.Matrix4fc modelView, org.joml.Matrix4fc projection, org.joml.Vector3dc cameraPosition, org.joml.Quaternionfc cameraOrientation, float renderDistance, net.minecraft.client.DeltaTracker deltaTracker) Renders the level from another POV.static void
render
(AdvancedFbo framebuffer, org.joml.Matrix4fc modelView, org.joml.Matrix4fc projection, org.joml.Vector3dc cameraPosition, org.joml.Quaternionfc cameraOrientation, float renderDistance, net.minecraft.client.DeltaTracker deltaTracker) Renders the level from another POV.
-
Method Details
-
render
public static void render(AdvancedFbo framebuffer, org.joml.Matrix4fc modelView, org.joml.Matrix4fc projection, org.joml.Vector3dc cameraPosition, org.joml.Quaternionfc cameraOrientation, float renderDistance, net.minecraft.client.DeltaTracker deltaTracker) Renders the level from another POV. Automatically prevents circular render references.- Parameters:
framebuffer
- The framebuffer to draw intomodelView
- The base modelview matrixprojection
- The projection matrixcameraPosition
- The position of the cameracameraOrientation
- The orientation of the camerarenderDistance
- The chunk render distancedeltaTracker
- The delta tracker instance
-
render
public static void render(AdvancedFbo framebuffer, @Nullable @Nullable net.minecraft.world.entity.Entity cameraEntity, org.joml.Matrix4fc modelView, org.joml.Matrix4fc projection, org.joml.Vector3dc cameraPosition, org.joml.Quaternionfc cameraOrientation, float renderDistance, net.minecraft.client.DeltaTracker deltaTracker) Renders the level from another POV. Automatically prevents circular render references.- Parameters:
framebuffer
- The framebuffer to draw intocameraEntity
- The entity to draw the camera in relation to. If unsure userender(AdvancedFbo, Matrix4fc, Matrix4fc, Vector3dc, Quaternionfc, float, DeltaTracker)
modelView
- The base modelview matrixprojection
- The projection matrixcameraPosition
- The position of the cameracameraOrientation
- The orientation of the camerarenderDistance
- The chunk render distancedeltaTracker
- The delta tracker instance
-
isRenderingPerspective
public static boolean isRenderingPerspective()- Returns:
- Whether a perspective is being rendered
-