Class BillboardMath
java.lang.Object
cromveil.combatnumbers.client.render.BillboardMath
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidfaceCamera(com.mojang.blaze3d.vertex.PoseStack ps, org.joml.Quaternionf orientation) static floatstatic floatforwardDepth(net.minecraft.client.renderer.state.level.CameraRenderState cam, net.minecraft.world.phys.Vec3 worldPos) static floatguiPixelToWorld(net.minecraft.client.renderer.state.level.CameraRenderState cam, float depth) static voidrotateZ(com.mojang.blaze3d.vertex.PoseStack ps, float degrees) static voidscaleBillboard(com.mojang.blaze3d.vertex.PoseStack ps, float pixelSize, float guiPixelToWorld, float perspectiveScale) static voidtranslatePixelOffsets(com.mojang.blaze3d.vertex.PoseStack ps, float px, float py, float guiPixelToWorld, float perspectiveScale)
-
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)
-