Creates a new CameraFrame instance.
The application.
The camera component.
Bloom settings.
Color LUT settings.
Debug rendering. Set to null to disable.
DoF settings.
Fringing settings.
Grading settings.
Rendering settings.
SSAO settings.
Taa settings.
Vignette settings.
Gets the enabled state of the camera frame.
Sets the enabled state of the camera frame. Passing false will release associated resources.
Creates a render pass for the camera frame. Override this method to utilize a custom render pass, typically one that extends RenderPassCameraFrame.
Destroys the camera frame, removing all render passes.
Applies any changes made to the properties of this instance.
Implementation of a simple to use camera rendering pass, which supports SSAO, Bloom and other rendering effects.
Overriding compose shader chunks: The final compose pass registers its shader chunks in a way that does not override any chunks that were already provided. To customize the compose pass output, set your shader chunks on the ShaderChunks map before creating the
CameraFrame
. Those chunks will be picked up by the compose pass and preserved.Example (GLSL):
Example