Creates a new SSAOPlugin instance.
Data type for the SSAO buffer (default: UnsignedByteType)
Size multiplier for the render target (default: 1.0)
Whether the plugin is initially enabled (default: true)
SSAO data packing mode (default: 1)
Protected_Protected Optional_Protected Optional_Protected_ReadonlybufferBuffer data type for the SSAO render target. Cannot be changed after plugin creation.
InternaldependenciesPlugin dependencies - automatically adds GBufferPlugin for depth and normal data
ReadonlypackingSSAO data packing mode for the render target. Cannot be changed after plugin creation.
ReadonlypassReadonlysizeRender target size multiplier relative to the main canvas size. Cannot be changed after plugin creation.
OptionaltargetThe render target containing SSAO data
OptionaltextureDebug texture preview of the SSAO buffer (read-only)
OptionaluiStatic ReadonlyOldStatic ReadonlyPluginuse target instead
Protected_This function is called every frame before composer render, if this pass is being used in the pipeline
Optional_: IScene<ISceneEventMap>Optional_1: ICamera<ICameraEventMap>Optional_2: IRenderManager<IRenderManagerEventMap>Protected_Protected_Protected_Protected_Protected_Optionalprefix: stringOptionalmeta: anyOptionalmeta: SerializationMetaType
Screen Space Ambient Occlusion (SSAO) Plugin for enhanced lighting and depth perception in 3D scenes.
SSAO is a real-time ambient occlusion technique that approximates the soft shadows that occur in creases, holes, and surfaces that are close to each other. This plugin adds a pre-render pass that calculates ambient occlusion data which is then used by materials during the main render pass.
Key Features
Dependencies
This plugin automatically adds GBufferPlugin as a dependency for efficient depth and normal data.
Usage Scenarios
Performance Considerations
sizeMultipliervalues (0.5-0.75) for better performance on mobile devicesTemporalAAPluginfor temporal accumulationExample: Basic Usage
Example: Per-Material Control
Example: High Performance Setup