Skip to content

Commit

Permalink
The MultiPipeline.batchSprite method (which is also used by the Sin…
Browse files Browse the repository at this point in the history
…gle Pipeline and Mobile Pipeline) will no longer use `roundPixels` when calculating the quad vertex data. It also won't apply it to any of the sprite values. This is all now handled in the shader directly.
  • Loading branch information
photonstorm committed Nov 7, 2023
1 parent 7590600 commit f96b557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/webgl/pipelines/MultiPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ var MultiPipeline = new Class({
// Multiply by the Sprite matrix, store result in calcMatrix
camMatrix.multiply(spriteMatrix, calcMatrix);

var quad = calcMatrix.setQuad(x, y, x + frameWidth, y + frameHeight, camera.roundPixels);
var quad = calcMatrix.setQuad(x, y, x + frameWidth, y + frameHeight, false);

var getTint = Utils.getTintAppendFloatAlpha;
var cameraAlpha = camera.alpha;
Expand Down

0 comments on commit f96b557

Please sign in to comment.