Skip to content

Commit

Permalink
improve layering
Browse files Browse the repository at this point in the history
  • Loading branch information
khjxiaogu committed Dec 13, 2024
1 parent cb901be commit a9b9e47
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static RenderType createTempType(ResourceLocation texture) {
public static void drawItem(GuiGraphics guiGraphics, ItemStack stack, int x, int y, int zindex, float scaleX,
float scaleY, boolean drawDecorations, @Nullable String countReplacement) {
guiGraphics.pose().pushPose();
guiGraphics.pose().translate(x, y, zindex);
guiGraphics.pose().translate(x, y, zindex+150);
guiGraphics.pose().scale(scaleX, scaleY, scaleX);
/*
* guiGraphics.renderItem(stack, 0, 0, 0,300);
Expand All @@ -144,7 +144,7 @@ public static void drawItem(GuiGraphics guiGraphics, ItemStack stack, int x, int
matrix4f=new Matrix4f(guiGraphics.pose().last().pose()).rotationYXZ(1.0821041F, 3.2375858F, 0.0F).rotateYXZ((-(float)Math.PI / 8F), 2.3561945F, 0.0F);
}
guiGraphics.pose().pushPose();
guiGraphics.pose().translate((float) (8), (float) (8), (float) (150 + (bakedmodel.isGui3d() ? 0 : 0)));
guiGraphics.pose().translate(8f, 8f,0f);

guiGraphics.pose().mulPoseMatrix((new Matrix4f()).scaling(1.0F, -1.0F, 1.0F));
guiGraphics.pose().scale(16.0F, 16.0F, 16.0F);
Expand Down

0 comments on commit a9b9e47

Please sign in to comment.