rebindTextures method
void
rebindTextures(
- RenderTarget renderTarget,
- dynamic colorTexture,
- 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);
}
}