new FrameBuffer(colorTextures, depthBuffer, cubeFace)
Parameters:
Name | Type | Description |
---|---|---|
colorTextures |
Either a single texture, or an Array of textures (only if |
|
depthBuffer |
An optional depth buffer. This can be a |
|
cubeFace |
If colorTextures is a |
Methods
-
init(silent)
-
Initializes the framebuffer object. This needs to be called whenever the Texture2D's are resized using initEmpty.
Parameters:
Name Type Description silent
Whether or not warnings should be printed.
-
readPixels()
-
Retrieves pixel data from this FBO. Not recommended, as it can be slow.