mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
TileSprite batcher modulates tilePosition by the texture size to avoid scrolling uv coordinates to large values.
issue ref: https://github.com/photonstorm/phaser/issues/3402
This commit is contained in:
parent
e29de6a9b3
commit
3158d688ad
1 changed files with 2 additions and 2 deletions
|
@ -1525,8 +1525,8 @@ var TextureTintPipeline = new Class({
|
|||
getTint(tileSprite._tintTR, tileSprite._alphaTR),
|
||||
getTint(tileSprite._tintBL, tileSprite._alphaBL),
|
||||
getTint(tileSprite._tintBR, tileSprite._alphaBR),
|
||||
tileSprite.tilePositionX / tileSprite.frame.width,
|
||||
tileSprite.tilePositionY / tileSprite.frame.height,
|
||||
(tileSprite.tilePositionX % tileSprite.frame.width) / tileSprite.frame.width,
|
||||
(tileSprite.tilePositionY % tileSprite.frame.height) / tileSprite.frame.height,
|
||||
camera
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue