AmbientOcclusionclass

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.

object→BasePostProcess<T>→AmbientOcclusion
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.AmbientOcclusion : Sandbox.BasePostProcess<T>

Constructors1

Showing 1 constructors

Methods1

Showing 1 methods

public virtual void Render()PUBLICVIRTUAL

Returns:void—

Properties6

Showing 6 properties

public virtual int Sandbox.AmbientOcclusion.ComponentVersion { get; set; }PUBLICVIRTUALGETSET

Returns:int—

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

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

Returns:float—

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

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

Returns:float—

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

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

Returns:int—

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

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

Returns:float—

On this page