WebGLMultipleRenderTargets constructor
WebGLMultipleRenderTargets(
- int width,
- int height,
- int count, [
- 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());
}
}