You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 (preferred) When calling generate texture you can pass in texture options:
const graphicsTexture = app.renderer.generateTexture({
target: graphics,
// set texture options at creation:
textureSourceOptions:{
scaleMode:'nearest'
}
});
2 The second is once a texture is created, the style can be modified, but update needs to be called to let the renderer know that the style has been updated:
Current Behavior
Creating a texture through app.renderer.generateTexture, applying scale mode to nearest, and then scaling a sprite will result in a blurry sprite.
Expected Behavior
Scale mode to be applied.
Steps to Reproduce
Playground link
Change pixi version from 8.1.0 to 8.0.5 to see changes.
Environment
pixi.js
version: 8.1.0Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: