Api Sandbox AmbientOcclusion
class

AmbientOcclusion

public sealed class AmbientOcclusion : BasePostProcess<T>

Adds an approximation of ambient occlusion using Screen Space Ambient Occlusion (SSAO). It darkens areas where ambient light is generally occluded from such as corners, crevices and surfaces that are close to each other.

Constructors

AmbientOcclusion()

Properties

Name Type Description
ComponentVersion virtual Int32
Intensity Single The intensity of the darkening effect. Has no impact on performance.
Radius Int32 Maximum distance of samples from pixel when determining its occlusion, in world units.
FalloffRange Single Gently reduce sample impact as it gets out of the effect's radius bounds
DenoiseMode DenoiseModes How we should denoise the effect
ThinCompensation Single Slightly reduce impact of samples further back to counter the bias from depth-based (incomplete) input scene geometry data
Quality SampleQuality

Methods

virtual Void Render()
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.AmbientOcclusion