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

  fsQuad.material = material;

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

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

  renderer.autoClear = oldAutoClear;
}