Jump to content

tileSprite seams visible when using atlas and webgl


Recommended Posts

I'm loading a tileSprite to use as a background like this:

this.bg = this.game.add.tileSprite(0, 0, 800, 600, 'pichon_atlas' ,'background2');

When Phaser is using WebGL to render and I load an image from an atlas I can see a 1px seam where the texture loops.

It doesn't happen when using CANVAS or when using WebGL and loading the image directly from a file.


The image itself has crisp borders without any semitransparent pixels, both as a single file and in the atlas. 


Do I need to use separate image files for tilesprites when using WebGL?

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...