render method

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

Implementation

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

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