setSize method

dynamic setSize(
  1. int width,
  2. int height
)

Implementation

setSize(int width, int height) {
  this._width = width;
  this._height = height;

  int effectiveWidth = (this._width * this._pixelRatio).toInt();
  int effectiveHeight = (this._height * this._pixelRatio).toInt();

  this.renderTarget1.setSize(effectiveWidth, effectiveHeight);
  this.renderTarget2.setSize(effectiveWidth, effectiveHeight);

  for (var i = 0; i < this.passes.length; i++) {
    this.passes[i].setSize(effectiveWidth, effectiveHeight);
  }
}