Skip to content

Commit feabcda

Browse files
committed
Fixed issue with scaled tilemaps
1 parent 10193c1 commit feabcda

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/renderer/webgl/pipelines/TextureTintPipeline.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,13 +1151,13 @@ var TextureTintPipeline = new Class({
11511151
tilemapLayer,
11521152
texture,
11531153
texture.width, texture.height,
1154-
tile.width / 2 + x + tile.pixelX, tile.height / 2 + y + tile.pixelY,
1155-
tile.width, tile.height,
1156-
sx, sy,
1154+
(tile.width / 2) + x + tile.pixelX * sx, (tile.height / 2) + y + tile.pixelY * sy,
1155+
tile.width * sx, tile.height * sy,
1156+
1, 1,
11571157
tile.rotation,
11581158
tile.flipX, tile.flipY,
11591159
scrollFactorX, scrollFactorY,
1160-
tile.width / 2, tile.height / 2,
1160+
(tile.width / 2), (tile.height / 2),
11611161
frameX, frameY, frameWidth, frameHeight,
11621162
tint, tint, tint, tint,
11631163
0, 0,

0 commit comments

Comments
 (0)