ManevilleF / hexx

Hexagonal tools lib in rust
Apache License 2.0
276 stars 22 forks source link

Visual artifacts when using sprites #148

Closed sgodwincs closed 5 months ago

sgodwincs commented 5 months ago

Describe the bug I was trying to make use of this library and noticed some visual artifacts when using my own sprites. I wasn't sure if it was a problem with my code, so I tried the sprite sheet example and modified the index to always be 12 and it shows for me. Haven't looked into whether this is caused by some floating point issue or something else yet.

To Reproduce Modify the sprite sheet example to use index 12 for all sprites and run the example.

Expected behavior I expect there to not be visual artifacts from the tiling.

Screenshots Or Code snippet tiles

sgodwincs commented 5 months ago

OK, I've read more about this problem and seems to be a more general problem of floating-point issues/texture bleeding. Going to close this out as it's non-actionable in this crate.