setSize method
Implementation
@override
WebGLMultipleRenderTargets setSize(int width, int height, [int depth = 1]) {
if (this.width != width || this.height != height || this.depth != depth) {
this.width = width;
this.height = height;
this.depth = depth;
for (var i = 0, il = texture.length; i < il; i++) {
texture[i].image.width = width;
texture[i].image.height = height;
texture[i].image.depth = depth;
}
dispose();
}
viewport.set(0, 0, width, height);
scissor.set(0, 0, width, height);
return this;
}