Skip to content

Fix fluid icons rendering cropped when sprites are padded - #161

Open
Eldrinn-Elantey wants to merge 1 commit into
masterfrom
fix/fluid-texture-sprite-padding
Open

Fix fluid icons rendering cropped when sprites are padded#161
Eldrinn-Elantey wants to merge 1 commit into
masterfrom
fix/fluid-texture-sprite-padding

Conversation

@Eldrinn-Elantey

@Eldrinn-Elantey Eldrinn-Elantey commented Aug 30, 2026

Copy link
Copy Markdown

Summary

Fluid textures were tiled using the sprite resolution as the tile size. When the block atlas is loaded with padding, which Angelica does by default for its RGSS texture filtering, the sprite reports twice its logical size while the UV range still covers the visible area, so only the top left quarter of the icon was drawn. The same happened with hd resource packs.

The tile size is now a fixed 16 gui pixels, which is independent of the sprite resolution, so tall tanks keep tiling the icon as before.

Reproduction: Angelica installed with Texture Filtering set to RGSS, open any gui with a fluid slot, for example Super Tank I (Супер резервуар I) in GregTech.

https://discord.com/channels/181078474394566657/522098956491030558/1539008537043148910

Before After
image image

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

@Eldrinn-Elantey
Eldrinn-Elantey requested a review from a team August 30, 2026 09:22
@Eldrinn-Elantey Eldrinn-Elantey added the Bug Fix Fixes a bug. Please link it in the PR if an issue exists for it. label Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Fix Fixes a bug. Please link it in the PR if an issue exists for it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant