From 038a6ceff9b71afda0f31f750960f83ad2dff9fe Mon Sep 17 00:00:00 2001 From: doctor4t Date: Thu, 23 Nov 2023 14:02:50 +0100 Subject: [PATCH] Fix sphere rendering --- .../lodestone/systems/rendering/VFXBuilders.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/sammy/lodestone/systems/rendering/VFXBuilders.java b/src/main/java/com/sammy/lodestone/systems/rendering/VFXBuilders.java index 31de470..f6eedc0 100644 --- a/src/main/java/com/sammy/lodestone/systems/rendering/VFXBuilders.java +++ b/src/main/java/com/sammy/lodestone/systems/rendering/VFXBuilders.java @@ -488,13 +488,13 @@ public WorldVFXBuilder renderSphere(VertexConsumer vertexConsumer, MatrixStack s float textureV = v / endV * radius; float textureUN = un / endU * radius; float textureVN = vn / endV * radius; - RenderHelper.vertexPosColorUVLight(vertexConsumer, last, p0.getY(), p0.getY(), p0.getZ(), r, g, b, a, textureU, textureV, light); - RenderHelper.vertexPosColorUVLight(vertexConsumer, last, p2.getY(), p2.getY(), p2.getZ(), r, g, b, a, textureUN, textureV, light); - RenderHelper.vertexPosColorUVLight(vertexConsumer, last, p1.getY(), p1.getY(), p1.getZ(), r, g, b, a, textureU, textureVN, light); + RenderHelper.vertexPosColorUVLight(vertexConsumer, last, p0.getX(), p0.getY(), p0.getZ(), r, g, b, a, textureU, textureV, light); + RenderHelper.vertexPosColorUVLight(vertexConsumer, last, p2.getX(), p2.getY(), p2.getZ(), r, g, b, a, textureUN, textureV, light); + RenderHelper.vertexPosColorUVLight(vertexConsumer, last, p1.getX(), p1.getY(), p1.getZ(), r, g, b, a, textureU, textureVN, light); - RenderHelper.vertexPosColorUVLight(vertexConsumer, last, p3.getY(), p3.getY(), p3.getZ(), r, g, b, a, textureUN, textureVN, light); - RenderHelper.vertexPosColorUVLight(vertexConsumer, last, p1.getY(), p1.getY(), p1.getZ(), r, g, b, a, textureU, textureVN, light); - RenderHelper.vertexPosColorUVLight(vertexConsumer, last, p2.getY(), p2.getY(), p2.getZ(), r, g, b, a, textureUN, textureV, light); + RenderHelper.vertexPosColorUVLight(vertexConsumer, last, p3.getX(), p3.getY(), p3.getZ(), r, g, b, a, textureUN, textureVN, light); + RenderHelper.vertexPosColorUVLight(vertexConsumer, last, p1.getX(), p1.getY(), p1.getZ(), r, g, b, a, textureU, textureVN, light); + RenderHelper.vertexPosColorUVLight(vertexConsumer, last, p2.getX(), p2.getY(), p2.getZ(), r, g, b, a, textureUN, textureV, light); } } return this;