renderFilter method Null safety

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

Implementation

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

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