Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Fix sphere rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
doctor4t committed Nov 23, 2023
1 parent c4a3c5c commit 038a6ce
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 038a6ce

Please sign in to comment.