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;
  final texture = this.texture;
  this.texture = GroupTexture();
  for (int i = 0; i < count; i++) {
    (this.texture as GroupTexture).children.add(texture.clone());
  }
}