diff --git a/common/src/main/java/com/unascribed/blockrenderer/varia/rendering/STBWrapper.java b/common/src/main/java/com/unascribed/blockrenderer/varia/rendering/STBWrapper.java index dc43e56..72cd5e9 100644 --- a/common/src/main/java/com/unascribed/blockrenderer/varia/rendering/STBWrapper.java +++ b/common/src/main/java/com/unascribed/blockrenderer/varia/rendering/STBWrapper.java @@ -55,6 +55,10 @@ public void forEach(IntConsumer consumer) { } } + public int[] getRawBuffer() { + return buffer; + } + public int getPixelRGBA(int x, int y) { return buffer[x + y * width]; } diff --git a/common/src/main/java/com/unascribed/blockrenderer/vendor/tr/TR.java b/common/src/main/java/com/unascribed/blockrenderer/vendor/tr/TR.java index 7eaa38b..d004735 100644 --- a/common/src/main/java/com/unascribed/blockrenderer/vendor/tr/TR.java +++ b/common/src/main/java/com/unascribed/blockrenderer/vendor/tr/TR.java @@ -192,7 +192,7 @@ public boolean endTile() { GL11.glPixelStorei(GL11.GL_PACK_ROW_LENGTH, imageWidth); GL11.glPixelStorei(GL11.GL_PACK_SKIP_ROWS, destY); GL11.glPixelStorei(GL11.GL_PACK_SKIP_PIXELS, destX); - GL11.glPixelStorei(GL11.GL_PACK_ALIGNMENT, 1); + GL11.glPixelStorei(GL11.GL_PACK_ALIGNMENT, 4); /* Read the tile into the final image */ GL11.glReadPixels(srcX, srcY, srcWidth, srcHeight, GL11.GL_RGBA, GL11.GL_UNSIGNED_BYTE, buffer); diff --git a/fabric/src/main/java/com/unascribed/blockrenderer/fabric/client/varia/rendering/GL.java b/fabric/src/main/java/com/unascribed/blockrenderer/fabric/client/varia/rendering/GL.java index 5532b6b..e5bb94b 100644 --- a/fabric/src/main/java/com/unascribed/blockrenderer/fabric/client/varia/rendering/GL.java +++ b/fabric/src/main/java/com/unascribed/blockrenderer/fabric/client/varia/rendering/GL.java @@ -84,7 +84,7 @@ public void blendFunction( @Override public void resetClearColor() { - RenderSystem.clearColor(0, 0, 0, 0); + RenderSystem.clearColor(1F, 1F, 1F, 0F); } @Override diff --git a/forge/src/main/java/com/unascribed/blockrenderer/forge/client/varia/rendering/GL.java b/forge/src/main/java/com/unascribed/blockrenderer/forge/client/varia/rendering/GL.java index 86e369f..9d29deb 100644 --- a/forge/src/main/java/com/unascribed/blockrenderer/forge/client/varia/rendering/GL.java +++ b/forge/src/main/java/com/unascribed/blockrenderer/forge/client/varia/rendering/GL.java @@ -84,7 +84,7 @@ public void blendFunction( @Override public void resetClearColor() { - RenderSystem.clearColor(0, 0, 0, 0); + RenderSystem.clearColor(1F, 1F, 1F, 0F); } @Override diff --git a/gradle.properties b/gradle.properties index fcaaef7..1e703de 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,7 +16,7 @@ yarnBuild =9.mcp.snapshot.20201028.1.16.3 ##################################### Mod ##################################### modId =block_renderer -modVersion =1.5.3 +modVersion =1.5.4-snapshot modGroup =com.unascribed vendor =AterAnimAvis