From c9366ba54151b865dc881aecc3c3e69520136610 Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Wed, 17 Nov 2021 16:26:14 +0900 Subject: [PATCH] Fix plant texture coordinates --- models/plant.obj | 8 ++++---- src/sig/SigRenderer.java | 8 +++----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/models/plant.obj b/models/plant.obj index 0233b12..030a025 100644 --- a/models/plant.obj +++ b/models/plant.obj @@ -6,10 +6,10 @@ v 1 0 0 #5 v 1 1 0 #6 v 0 1 1 #7 v 0 0 1 #8 -vt 0 0 #1 -vt 0 1 #2 -vt 1 1 #3 -vt 1 0 #4 +vt 0 1 #1 +vt 0 0 #2 +vt 1 0 #3 +vt 1 1 #4 f 1/1 3/3 2/2 f 1/1 4/4 3/3 f 1/1 2/2 3/3 diff --git a/src/sig/SigRenderer.java b/src/sig/SigRenderer.java index a437067..78d3da8 100644 --- a/src/sig/SigRenderer.java +++ b/src/sig/SigRenderer.java @@ -401,7 +401,9 @@ public class SigRenderer implements WindowFocusListener,KeyListener,MouseListene Random r = new Random(438107); for (int x=0;x<64;x++) { for (int z=0;z<64;z++) { - addBlock(new Vector(x,0,z),Cube.class,BlockType.GRASS,FacingDirection.SOUTH); + addBlock(new Vector(x,0,z),Cube.class,BlockType.SOIL_WET,FacingDirection.SOUTH); + addBlock(new Vector(x,1,z),Plant.class,BlockType.valueOf("WHEAT_"+(r.nextInt(7))),FacingDirection.SOUTH); + //addBlock(new Vector(x,1,z),Staircase.class,BlockType.JUNGLE_PLANK,FacingDirection.SOUTH); //addBlock(new Vector(x,2,z),Staircase.class,BlockType.SPRUCE_PLANK,FacingDirection.SOUTH); /*for (int y=1;y