The sprites have some extra pixels around them when they are added to Atlas.
But it seemed to work just fine when I added it to the game object.
I don’t know what I did wrong or if this will cause any problems in the future.
The sprites have some extra pixels around them when they are added to Atlas.
Check ‘Extrude Borders’ description:
Oh, that is so simple. Thank you a lot.
After setting it to 0, everything looks fine.
No no, you want to extrude the borders of each image in the atlas to avoid texture bleeding! Padding/extruding the edges of each image will make sure that when the GPU samples the texture it will not sample from adjacent images.
Edit: This is primarily a concern when rendering an image scaled, not when rendering at 1:1 scale.
My game resolution is 128x128 so the game will be scaled up for the player. So extrude the borders is good?
Sorry, I just started learning Defold and Lua for a few days, so everything is kind of confusing.
Thank you