Skip to content

Commit

Permalink
fixed custom texture uv being incorrectly scaled
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanobass committed May 28, 2024
1 parent 2deef17 commit 4a5655e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Mod Properties
id = fluxapi
version = 0.6.1
version = 0.6.2
flux_desc = The central modding API for Cosmic Reach Fabric/Quilt

group = dev.crmodders
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static void registerTexture(String textureName, Pixmap blockPix) {
Texture chunkTerrainTex = ChunkShaderAccessor.getChunkTerrainTex();
HashMap<String, BlockModelJsonTexture> storedTexs = ChunkShaderAccessor.getStoredTexs();

float[] uv = new float[]{(float)(terrainPixCurX / allBlocksPix.getWidth()), (float)(terrainPixCurY / allBlocksPix.getHeight())};
float[] uv = new float[]{(float)(terrainPixCurX / blockPix.getWidth()), (float)(terrainPixCurY / blockPix.getHeight())};
allBlocksPix.drawPixmap(blockPix, terrainPixCurX, terrainPixCurY);
terrainPixCurX += blockPix.getWidth();
if ((float)terrainPixCurX > (float)(allBlocksPix.getWidth() * 15) / 16.0F) {
Expand Down

0 comments on commit 4a5655e

Please sign in to comment.