Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

Environment

Procedural sky radiance and camera exposure. The first in stable-ID order wins.

public struct Environment : IComponent<Environment>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

Sky

public Color Sky;

Zenith sky color (linear).

Default: [0.22,0.32,0.6,1].

Horizon

public Color Horizon;

Horizon sky color (linear).

Default: [0.95,0.62,0.4,1].

Ground

public Color Ground;

Ground color seen below the horizon (linear).

Default: [0.18,0.16,0.14,1].

Intensity

public float Intensity;

Sky radiance scale in candela per square metre.

Unit: cd. Range: [0, ∞]. Default: 900.

Exposure

public float Exposure;

Linear camera exposure multiplier, applied before tone mapping.

Range: [1e-7, ∞]. Default: 0.0015.

Methods

Access

public static ref Environment Access(Entity entity, bool write);

No description yet.

Insert

public static void Insert(in Commands commands, Entity entity, in Environment value);

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.