renderFilter method

  1. @override
void renderFilter (
  1. RenderState renderState,
  2. RenderTextureQuad renderTextureQuad,
  3. int pass
)
override

Implementation

@override
void renderFilter(
    RenderState renderState, RenderTextureQuad renderTextureQuad, int pass) {
  var renderContext = renderState.renderContext as RenderContextWebGL;
  var renderProgram = renderContext.renderProgramTinted;

  renderContext.activateRenderProgram(renderProgram);
  renderContext.activateRenderTexture(renderTextureQuad.renderTexture);
  renderProgram.renderTextureQuad(
      renderState, renderTextureQuad, factorR, factorG, factorB, factorA);
}