diff --git a/packages/core/src/textures/FrameBuffer.js b/packages/core/src/textures/FrameBuffer.js index 5a42736..58c8f39 100644 --- a/packages/core/src/textures/FrameBuffer.js +++ b/packages/core/src/textures/FrameBuffer.js @@ -34,7 +34,11 @@ addColorTexture(index, texture) { // TODO add some validation to the texture - same width / height etc? - this.colorTextures[index || 0] = texture || new Texture(null, 0, 1, this.width, this.height);// || new Texture(); + this.colorTextures[index || 0] = texture || new Texture(null, { scaleMode: 0, + resolution: 1, + mipmap: false, + width: this.width, + height: this.height });// || new Texture(); this.dirtyId++; this.dirtyFormat++; @@ -45,9 +49,14 @@ addDepthTexture(texture) { /* eslint-disable max-len */ - this.depthTexture = texture || new Texture(null, 0, 1, this.width, this.height, FORMATS.DEPTH_COMPONENT, TYPES.UNSIGNED_SHORT);// UNSIGNED_SHORT; + this.depthTexture = texture || new Texture(null, { scaleMode: 0, + resolution: 1, + width: this.width, + height: this.height, + mipmap: false, + format: FORMATS.DEPTH_COMPONENT, + type: TYPES.UNSIGNED_SHORT });// UNSIGNED_SHORT; /* eslint-disable max-len */ - this.dirtyId++; this.dirtyFormat++;