rebindTextures method

void rebindTextures(
  1. RenderTarget renderTarget,
  2. dynamic colorTexture,
  3. dynamic depthTexture
)

Implementation

void rebindTextures(RenderTarget renderTarget, colorTexture, depthTexture) {
  final renderTargetProperties = properties.get(renderTarget);

  if (colorTexture != null) {
    setupFrameBufferTexture(renderTargetProperties["__webglFramebuffer"], renderTarget, renderTarget.texture,
        WebGL.COLOR_ATTACHMENT0, WebGL.TEXTURE_2D);
  }

  if (depthTexture != null) {
    setupDepthRenderbuffer(renderTarget);
  }
}