s&box docs

public sealed class Sandbox.AmbientOcclusion : Sandbox.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.

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 1 methods

public virtual void Render()

Properties

Showing 7 properties

public float Sandbox.AmbientOcclusion.FalloffRange { get; set; }

Gently reduce sample impact as it gets out of the effect's radius bounds

public float Sandbox.AmbientOcclusion.Intensity { get; set; }

The intensity of the darkening effect. Has no impact on performance.

public int Sandbox.AmbientOcclusion.Radius { get; set; }

Maximum distance of samples from pixel when determining its occlusion, in world units.

public float Sandbox.AmbientOcclusion.ThinCompensation { get; set; }

Slightly reduce impact of samples further back to counter the bias from depth-based (incomplete) input scene geometry data

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.AmbientOcclusion

On this page