rebindTextures method
void
rebindTextures(
- RenderTarget renderTarget,
- dynamic colorTexture,
- dynamic depthTexture
)
Implementation
void rebindTextures(RenderTarget renderTarget, colorTexture, depthTexture) {
var renderTargetProperties = properties.get(renderTarget);
if (colorTexture != null) {
setupFrameBufferTexture(renderTargetProperties["__webglFramebuffer"], renderTarget, renderTarget.texture,
_gl.COLOR_ATTACHMENT0, _gl.TEXTURE_2D);
}
if (depthTexture != null) {
setupDepthRenderbuffer(renderTarget);
}
}