Skip to content

Commit a5a2d14

Browse files
committed
Always resize pen layer with NEAREST
1 parent eaddfaf commit a5a2d14

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/PenSkin.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,8 @@ class PenSkin extends Skin {
309309
};
310310

311311
twgl.setTextureParameters(gl, texture, {
312-
// Minify using linear to look less pixelated
313-
min: gl.LINEAR,
314-
// Magnify using nearest because that's what Scratch normally does
315-
mag: gl.NEAREST
312+
// Always use NEAREST because this most closely matches Scratch behavior
313+
minMag: gl.NEAREST
316314
});
317315
twgl.setUniforms(this._drawTextureShader, uniforms);
318316
twgl.drawBufferInfo(gl, this._renderer._bufferInfo, gl.TRIANGLES);

0 commit comments

Comments
 (0)