render method

dynamic render(
  1. dynamic renderer,
  2. dynamic writeBuffer,
  3. dynamic readBuffer, {
  4. num? deltaTime,
  5. bool? maskActive,
})

Implementation

render(renderer, writeBuffer, readBuffer,
    {num? deltaTime, bool? maskActive}) {
  this.uniforms['tDiffuse']["value"] = readBuffer.texture;
  this.uniforms['time']["value"] += deltaTime;

  if (this.renderToScreen) {
    renderer.setRenderTarget(null);
    this.fsQuad.render(renderer);
  } else {
    renderer.setRenderTarget(writeBuffer);
    if (this.clear) renderer.clear();
    this.fsQuad.render(renderer);
  }
}