Open kozlown opened 1 year ago
cc @groud
I discussed this on Discord with OP. To resolve the issue, we should probably generate mipmaps automatically after creating padding if the source texture also has mipmaps enabled.
I discussed this on Discord with OP. To resolve the issue, we should probably generate mipmaps automatically after creating padding if the source texture also has mipmaps enabled.
Hmm, if you take a TileSet texture and generate mipmaps for it, then pixels will end up blurred, and texture bleeding is bound to happen anyway. So I am not sure that texture padding is very useful when mipmaps are enabled (it might help, but the problem will be visible anyway).
I see several solutions:
Godot version
v4.0.2.stable.official [7a0977ce2] v4.0.3.stable.official [5222a99f5]
System information
Ubuntu 20.04.6 LTS
Issue description
Activating property use_texture_padding for an Atlas disables mipmaps for this atlas.
Activating the property use_texture_padding should not disable mipmaps because it makes impossible the creation of clean HD-2D maps with zoom/unzoom.
Steps to reproduce
Minimal reproduction project
Test use_texture_padding and mipmaps.zip