setSize method
Implementation
void setSize(double width, double height) {
_width = width;
_height = height;
int effectiveWidth = (_width * _pixelRatio).toInt();
int effectiveHeight = (_height * _pixelRatio).toInt();
renderTarget1.setSize(effectiveWidth, effectiveHeight);
renderTarget2.setSize(effectiveWidth, effectiveHeight);
for (int i = 0; i < passes.length; i++) {
passes[i].setSize(effectiveWidth, effectiveHeight);
}
}