render method

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

Implementation

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

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