Screen Space Ambient Obscurance
Tilt Shift

Screen Space Ambient Occlusion

El efecto de imagen __Screen Space Occlusion (SSAO) __ se aproxima a Ambient Occlusion en tiempo real, como un efecto de postprocesamiento de imágenes. Oscurece los pliegues, los agujeros y las superficies que están cerca entre sí. En la vida real, tales áreas tienden a bloquear o iluminar la luz de ambiente, por lo tanto, aparecen más oscuras.

Para una implementación moderna de la oclusión ambiental en tiempo real, eche un vistazo al nuevo efecto Screen Space Ambient Obscurance.

Al igual que los otros efectos de imagen, usted debe tener el Standard Assets Effects package instalado antes de que se vuelva disponible.

SSAO applied to the scene.
SSAO applied to the scene.
The same scene without SSAO for comparison. Note the differences at the corners where structures or grass meet the ground.
The same scene without SSAO for comparison. Note the differences at the corners where structures or grass meet the ground.

Propiedades

Propiedad: Función:
Radius The maximum “radius” of a gap that will introduce ambient occlusion.
Sample Count Number of ambient occlusion samples. A higher count will give better quality but with a higher processing overhead.
Occlusion Intensity The degree of darkness added by ambient occlusion.
Blur Amount of blur to apply to the darkening. No blur (0) is much faster but the darkened areas will be noisy.
Downsampling The resolution at which calculations should be performed (for example, a downsampling value of 2 will work at half the screen resolution). Downsampling increases rendering speed at the cost of quality.
Occlusion Attenuation How fast occlusion should attenuate with distance.
Min Z Try increasing this value if there are artifacts.

Detalles

SSAO approximates ambient occlusion using an image processing effect. Its cost depends purely on screen resolution and SSAO parameters and does not depend on scene complexity as true AO would. However, the approximation tends to introduce artifacts. For example, objects that are outside of the screen do not contribute to occlusion and the amount of occlusion is dependent on viewing angle and camera position.

Note that SSAO is quite expensive in terms of processing time and generally should only be used on high-end graphics cards. Using SSAO will cause Unity to render the depth+normals texture of the camera which increases the number of draw calls and has a CPU processing overhead. However, the depth+normals texture then can be used for other effects as well (eg, Depth of Field). Once the texture is generated, the remainder of the SSAO effect is performed on the graphics card.

Hardware Support

This effect requires a graphics card that supports Shader Model 3 and depth textures. See the Graphics Hardware Capabilities and Emulation page for further details and a list of compliant hardware.

Screen Space Ambient Obscurance
Tilt Shift