diff --git a/Three.js/Texture-Animation.html b/Three.js/Texture-Animation.html index c1a4127..ca3e2d2 100644 --- a/Three.js/Texture-Animation.html +++ b/Three.js/Texture-Animation.html @@ -188,7 +188,7 @@ var currentColumn = this.currentTile % this.tilesHorizontal; texture.offset.x = currentColumn / this.tilesHorizontal; var currentRow = Math.floor( this.currentTile / this.tilesHorizontal ); - texture.offset.y = currentRow / this.tilesVertical; + texture.offset.y = ( - currentRow - 1 ) / this.tilesVertical; } }; }