Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -515,11 +515,16 @@ var SubmitterTilemapGPULayer = new Class({
calcMatrix.multiply(spriteMatrix);

// Compute output quad.
// The layer's x/y position is already baked into `spriteMatrix` (via
// `applyITRS`) and thus into `calcMatrix`, so the quad must be built
// from local coordinates (0, 0)-(width, height). Passing the absolute
// x/y here would apply the position twice, offsetting the layer by
// (x, y) (i.e. rendering a layer placed at (x, y) at (2x, 2y)).
calcMatrix.setQuad(
x,
y,
x + width,
y + height,
0,
0,
width,
height,
quad
);

Expand Down