Skip to content

Bleed/transparent pixels when using spritesheets #9938

Answered by bigtimebuddy
rbhalla asked this question in Q&A
Discussion options

You must be logged in to vote

Try setting a scaleMode, this tells the GPU how to interpolate pixels that are scaled (default is LINEAR).

const sprites = new PIXI.Spritesheet(
  new PIXI.BaseTexture(img, {
  	scaleMode: PIXI.SCALE_MODES.NEAREST,
  }),
  spritesData
);

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@rbhalla
Comment options

@bigtimebuddy
Comment options

Answer selected by rbhalla
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants