Class VeilLevelPerspectiveRenderer

java.lang.Object
foundry.veil.api.client.render.VeilLevelPerspectiveRenderer

public final class VeilLevelPerspectiveRenderer extends Object
Renders the level from different perspectives.
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
     
    static boolean
     
    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, boolean drawLights)
    Renders the level from another POV.
    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, boolean drawLights)
    Renders the level from another POV.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • render

      public static AdvancedFbo 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, boolean drawLights)
      Renders the level from another POV. Automatically prevents circular render references.
      Parameters:
      framebuffer - The framebuffer to draw into
      modelView - The base modelview matrix
      projection - The projection matrix
      cameraPosition - The position of the camera
      cameraOrientation - The orientation of the camera
      renderDistance - The chunk render distance
      deltaTracker - The delta tracker instance
      drawLights - Whether to draw lights to the scene after
      Returns:
      The full framebuffer including dynamic buffers. This framebuffer is owned by the render system
    • render

      public static AdvancedFbo 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, boolean drawLights)
      Renders the level from another POV. Automatically prevents circular render references.
      Parameters:
      framebuffer - The framebuffer to draw into
      cameraEntity - The entity to draw the camera in relation to. If unsure use render(AdvancedFbo, Matrix4fc, Matrix4fc, Vector3dc, Quaternionfc, float, DeltaTracker, boolean)
      modelView - The base modelview matrix
      projection - The projection matrix
      cameraPosition - The position of the camera
      cameraOrientation - The orientation of the camera
      renderDistance - The chunk render distance
      deltaTracker - The delta tracker instance
      drawLights - Whether to draw lights to the scene after
      Returns:
      The full framebuffer including dynamic buffers. This framebuffer is owned by the render system
    • isRenderingPerspective

      public static boolean isRenderingPerspective()
      Returns:
      Whether a perspective is being rendered
    • getID

      @Internal public static int getID()