Skip to content

Commit

Permalink
[#133] Scaling works now. Easier than I thought
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielxs01 committed Jan 22, 2024
1 parent c0c2d44 commit a65e679
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ private static void renderSignals(String blockId, ContentPackSignal signal, Tile
scale[1] *= customScaling.y;
scale[2] *= customScaling.z;


state.scale(scale[0], scale[1], scale[2]);
state.translate(translate);
state.rotate(tile.getBlockRotate(), 0, 1, 0);
Expand Down Expand Up @@ -204,6 +203,7 @@ private static void renderFlares(String id, ContentPackSignal signal, TileSignal
.depth_mask(false)
.alpha_test(false).blend(new BlendMode(BlendMode.GL_SRC_ALPHA, BlendMode.GL_ONE_MINUS_SRC_ALPHA));

flareState.scale(tile.getScaling());
flareState.translate(tile.getOffset());

flareState.translate(flare.getPrecalculatedData().flareCenterOffset);
Expand Down

0 comments on commit a65e679

Please sign in to comment.