resize() {
        // resize the planes only if they are fully initiated
        for(let i = 0; i < this.planes.length; i++) {
            if(this.planes[i]._canDraw) {
                this.planes[i].resize();
            }
        }

        // resize the shader passes only if they are fully initiated
        for(let i = 0; i < this.shaderPasses.length; i++) {
            if(this.shaderPasses[i]._canDraw) {
                this.shaderPasses[i].resize();
            }
        }

        // resize the render targets
        for(let i = 0; i < this.renderTargets.length; i++) {
            this.renderTargets[i].resize();
        }

        // be sure we'll update the scene even if drawing is disabled
        this.needRender();
    }
Resize all our elements: planes, shader passes and render targets
     Their textures will be resized as well
*