Class BillboardMath

java.lang.Object
cromveil.combatnumbers.client.render.BillboardMath

public final class BillboardMath extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    faceCamera(com.mojang.blaze3d.vertex.PoseStack ps, org.joml.Quaternionf orientation)
     
    static float
     
    static float
    forwardDepth(net.minecraft.client.renderer.state.level.CameraRenderState cam, net.minecraft.world.phys.Vec3 worldPos)
     
    static float
    guiPixelToWorld(net.minecraft.client.renderer.state.level.CameraRenderState cam, float depth)
     
    static void
    rotateZ(com.mojang.blaze3d.vertex.PoseStack ps, float degrees)
     
    static void
    scaleBillboard(com.mojang.blaze3d.vertex.PoseStack ps, float pixelSize, float guiPixelToWorld, float perspectiveScale)
     
    static void
    translatePixelOffsets(com.mojang.blaze3d.vertex.PoseStack ps, float px, float py, float guiPixelToWorld, float perspectiveScale)
     

    Methods inherited from class Object

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

    • fontReferenceHeight

      public static float fontReferenceHeight()
    • forwardDepth

      public static float forwardDepth(net.minecraft.client.renderer.state.level.CameraRenderState cam, net.minecraft.world.phys.Vec3 worldPos)
    • guiPixelToWorld

      public static float guiPixelToWorld(net.minecraft.client.renderer.state.level.CameraRenderState cam, float depth)
    • faceCamera

      public static void faceCamera(com.mojang.blaze3d.vertex.PoseStack ps, org.joml.Quaternionf orientation)
    • rotateZ

      public static void rotateZ(com.mojang.blaze3d.vertex.PoseStack ps, float degrees)
    • translatePixelOffsets

      public static void translatePixelOffsets(com.mojang.blaze3d.vertex.PoseStack ps, float px, float py, float guiPixelToWorld, float perspectiveScale)
    • scaleBillboard

      public static void scaleBillboard(com.mojang.blaze3d.vertex.PoseStack ps, float pixelSize, float guiPixelToWorld, float perspectiveScale)