WebGLMultipleRenderTargets constructor

WebGLMultipleRenderTargets(
  1. int width,
  2. int height,
  3. int count, [
  4. WebGLRenderTargetOptions? options,
])

Implementation

WebGLMultipleRenderTargets(
  int width,
  int height,
  int count, [
  WebGLRenderTargetOptions? options,
]) : super(width, height, options) {
  isWebGLMultipleRenderTargets = true;
  var texture = this.texture;
  this.texture = [];
  for (var i = 0; i < count; i++) {
    this.texture.add(texture.clone());
  }
}