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}) {
  var oldAutoClear = renderer.autoClear;
  renderer.autoClear = false;

  this.fsQuad.material = this.material;

  this.uniforms['opacity']["value"] = this.opacity;
  this.uniforms['tDiffuse']["value"] = this.map;
  this.material.transparent = (this.opacity < 1.0);

  renderer.setRenderTarget(this.renderToScreen ? null : readBuffer);
  if (this.clear) renderer.clear(true, true, true);
  this.fsQuad.render(renderer);

  renderer.autoClear = oldAutoClear;
}