Skip to content

Commit

Permalink
Fixed <6 sided cubes not rendering properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Goodbird committed May 27, 2024
1 parent 2ee7da5 commit 8e1e82b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ default void renderCube(Tessellator builder, GeoCube cube, float red, float gree
MATRIX_STACK.moveBackFromPivot(cube);

for (GeoQuad quad : cube.quads) {
if (quad == null) continue;
Vector3f normal = new Vector3f(quad.normal.getX(), quad.normal.getY(), quad.normal.getZ());

MATRIX_STACK.getNormalMatrix().transform(normal);
Expand Down

0 comments on commit 8e1e82b

Please sign in to comment.