Khaligufzel / Dimensionfall

A survival game inspired by Cataclysm: Dark Days Ahead and Bright Nights.
MIT License
12 stars 5 forks source link

Block mesh generation cuts off part of the tile sprite, while the atlas does not #174

Closed snipercup closed 4 months ago

snipercup commented 4 months ago

I tried to add the road tile with markings on top to the generichouse, but I found a bug related to the texture atlas. If there are more different tiles on the map, the tile atlas texture will be bigger for that chunk and it is more noticable that a margin is cut off the tile. In chunk.gd the create_atlas function does not have a margin for tiles, but prepare_mesh_data does use a margin for the tiles. It's only 0.01 but it becomes noticable when more different tiles are added and the atlas is bigger.