A CaptureFrame is a special type of GameObject that allows you to
capture the current state of the render.
For example, if you place a CaptureFrame between two other objects,
it will capture the first object to a texture, but not the second.
This is useful for full-scene post-processing prior to render completion,
such as a layer of water.
This is a WebGL only feature and is not available in Canvas mode.
You must activate the forceComposite property of the Camera,
or otherwise use this object within a framebuffer, to use this feature.
Examples of framebuffer situations include Filters, DynamicTexture,
and a camera with alpha between 0 and 1.
This object does not render anything. It simply captures a texture
from the current framebuffer at the moment it 'renders'.
If you add filters to this object, it will capture the clear, temporary
framebuffer used for the filter, not the main framebuffer.
If you add filters to a Container that contains this object,
it will capture only objects within that Container.
If you set visible to false, it will just stop capturing.
A CaptureFrame is a special type of GameObject that allows you to capture the current state of the render. For example, if you place a CaptureFrame between two other objects, it will capture the first object to a texture, but not the second. This is useful for full-scene post-processing prior to render completion, such as a layer of water.
This is a WebGL only feature and is not available in Canvas mode.
You must activate the
forceCompositeproperty of the Camera, or otherwise use this object within a framebuffer, to use this feature. Examples of framebuffer situations include Filters, DynamicTexture, and a camera with alpha between 0 and 1.This object does not render anything. It simply captures a texture from the current framebuffer at the moment it 'renders'. If you add filters to this object, it will capture the clear, temporary framebuffer used for the filter, not the main framebuffer. If you add filters to a Container that contains this object, it will capture only objects within that Container. If you set
visibletofalse, it will just stop capturing.