Home Game Dev Unity Assets Unity Shaders Luma Based Ambient Occlusion 2 (SSAO 2D) v5.0

Luma Based Ambient Occlusion 2 (SSAO 2D) v5.0

4239 Views Stock 912 2025-10-18

Details

 Luma Based Ambient Occlusion 2 (SSAO 2D) v5.0 is a full-screen image effect that simulates occlusion based solely on color information. It is specifically designed for 2D scenes where no depth information is available, providing a depth shading or relief effect to flat 2D images. While it can also be used in 3D scenes, depth-based AO solutions like HBAO are generally recommended in such cases, though combining both approaches allows for experimentation. LBAO works well with the Beautify plugin. Key features include support for both orthographic and perspective cameras, depth-independent operation compatible with 2D, transparent objects, and particles, color bleeding, and directional occlusion control. A demo scene is included for reference. The effect is compatible with both Unity's built-in rendering pipeline and the Universal Render Pipeline (URP). The URP version requires Unity 2021.3 or later and also supports the new URP Render Graph. For implementation: in the built-in pipeline, simply add the LBAO script to your main camera and adjust its parameters. In URP, add the "LBAO Render Feature" to the 2D or Universal Renderer Feature list, create or select a global Volume in your scene, and attach a LBAO component to customize the settings. 
2025-10-18 00:00:00-update version:Luma Based Ambient Occlusion 2 (SSAO 2D) v5.0