struct
AmbientOcclusionSettings
Settings that control screen space ambient occlusion.
Public
Constructors
AmbientOcclusionSettings
Methods
staticGetRttiStatic
Fields
Enabled
Enables or disables the screen space ambient occlusion effect.
Radius
Radius (in world space, in meters) over which occluders are searched for.
Smaller radius ensures better sampling precision but can miss occluders. Larger radius ensures far away occluders are considered but can yield lower quality or noise because of low sampling precision. Usually best to keep at around a meter, valid range is roughly [0.05, 5.0].
Bias
Bias used to reduce false occlusion artifacts.
Higher values reduce the amount of artifacts but will cause details to be lost in areas where occlusion isn't high. Value is in millimeters. Usually best to keep at a few dozen millimeters, valid range is roughly [0, 200].
FadeDistance
Distance (in view space, in meters) after which AO starts fading out.
The fade process will happen over the range as specified by .
FadeRange
Range (in view space, in meters) in which AO fades out from 100% to 0%.
AO starts fading out after the distance specified in .
Intensity
Linearly scales the intensity of the AO effect.
Values less than 1 make the AO effect less pronounced, and vice versa. Valid range is roughly [0.2, 2].
Power
Controls how quickly does the AO darkening effect increase with higher occlusion percent.
This is a non-linear control and will cause the darkening to ramp up exponentially. Valid range is roughly [1, 4], where 1 means no extra darkening will occur.
Quality
Quality level of generated ambient occlusion.
In range [0, 4]. Higher levels yield higher quality AO at the cost of performance.