in seriously.js [1686:1726]
Node.prototype.resize = function () {
var width,
height;
if (this.source) {
width = this.source.width;
height = this.source.height;
} else if (this.sources && this.sources.source) {
width = this.sources.source.width;
height = this.sources.source.height;
} else if (this.inputs && this.inputs.width) {
width = this.inputs.width;
height = this.inputs.height || width;
} else if (this.inputs && this.inputs.height) {
width = height = this.inputs.height;
} else {
//this node will be responsible for calculating its own size
width = 1;
height = 1;
}
width = Math.floor(width);
height = Math.floor(height);
if (this.width !== width || this.height !== height) {
this.width = width;
this.height = height;
this.emit('resize');
this.setDirty();
}
if (this.uniforms && this.uniforms.resolution) {
this.uniforms.resolution[0] = width;
this.uniforms.resolution[1] = height;
}
if (this.frameBuffer && this.frameBuffer.resize) {
this.frameBuffer.resize(width, height);
}
};