diff --git a/packages/core/src/textures/BaseTexture.js b/packages/core/src/textures/BaseTexture.js index 5f2228d..5c2731a 100644 --- a/packages/core/src/textures/BaseTexture.js +++ b/packages/core/src/textures/BaseTexture.js @@ -378,8 +378,8 @@ setRealSize(realWidth, realHeight, resolution) { this.resolution = resolution || this.resolution; - this.width = Math.ceil(realWidth / this.resolution); - this.height = Math.ceil(realHeight / this.resolution); + this.width = realWidth / this.resolution; + this.height = realHeight / this.resolution; this._refreshPOT(); this.update(); @@ -415,8 +415,8 @@ if (this.valid) { - this.width = Math.ceil(this.width * oldResolution / resolution); - this.height = Math.ceil(this.height * oldResolution / resolution); + this.width = this.width * oldResolution / resolution; + this.height = this.height * oldResolution / resolution; this.emit('update', this); }