diff --git a/src/engine/Engine.ts b/src/engine/Engine.ts index 487328dc3..e903f4bb6 100644 --- a/src/engine/Engine.ts +++ b/src/engine/Engine.ts @@ -165,7 +165,10 @@ export interface EngineOptions { * Specify any UV padding you want use in pixels, this brings sampling into the texture if you're using * a sprite sheet in one image to prevent sampling bleed. * - * By default .01 pixels, and .25 pixels if `pixelArt: true` + * Defaults: + * * `antialiasing: false` or `filtering: ImageFiltering.Pixel` - 0.0; + * * `pixelArt: true` - 0.25 + * * All else 0.01 */ uvPadding?: number; @@ -819,6 +822,11 @@ O|===|* >________________>\n\ if (options.pixelArt) { uvPadding = .25; } + + if (!options.antialiasing || filtering === ImageFiltering.Pixel) { + uvPadding = 0; + } + // Override with any user option, if non default to .25 for pixel art, 0.01 for everything else uvPadding = options.uvPadding ?? uvPadding ?? 0.01; diff --git a/src/spec/images/GraphicsSystemSpec/graphics-system.png b/src/spec/images/GraphicsSystemSpec/graphics-system.png index 72fe3ccda..3814e5ef1 100644 Binary files a/src/spec/images/GraphicsSystemSpec/graphics-system.png and b/src/spec/images/GraphicsSystemSpec/graphics-system.png differ