Jump to content

Sprite edges getting cropped


Recommended Posts


I notised pixels at the edges of my sprites are getting cropped,

adding a 5 px margin around the textured areas have fixed it,

but it still seems odd so i wanted to report it incase there's a bug somewhere.


var grass_SPM = new BABYLON.SpriteManager("grass", "./grass.png", 2500, 400, scene);


zoomed screenshot, original is 400*400 (transparent area above the texture)



as can be seen on the following screenshot, the top is fine, but both left, right and bottom are being chopped. (the visible seams are just a missing adjustment from changing sprite size)




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...