|
@@ -1940,6 +1940,15 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Binds the frame buffer to the specified texture.
|
|
|
+ * @param texture The texture to render to or null for the default canvas
|
|
|
+ * @param faceIndex The face of the texture to render to in case of cube texture
|
|
|
+ * @param requiredWidth The width of the target to render to
|
|
|
+ * @param requiredHeight The height of the target to render to
|
|
|
+ * @param forceFullscreenViewport Forces the viewport to be the entire texture/screen if true
|
|
|
+ * @param depthStencilTexture The depth stencil texture to use to render
|
|
|
+ */
|
|
|
public bindFramebuffer(texture: InternalTexture, faceIndex?: number, requiredWidth?: number, requiredHeight?: number, forceFullscreenViewport?: boolean, depthStencilTexture?: InternalTexture): void {
|
|
|
if (this._currentRenderTarget) {
|
|
|
this.unBindFramebuffer(this._currentRenderTarget);
|