Scripting API

Scripting API

AmbientLighting

Record struct in Abyss.Core, from Abyss.Core.

The light a camera sees everything by, from no way in particular: what keeps a shadow from being black. Its color is sRGB; its brightness in candela per square meter, where 500 lights a day and 50 a night.

public readonly record struct AmbientLighting

Remarks

Laid out as abyss_core::lighting::AmbientLighting is, 16 bytes.

Constructors

AmbientLighting

public AmbientLighting(Vector3 Color, float Brightness)

The light a camera sees everything by, from no way in particular: what keeps a shadow from being black. Its color is sRGB; its brightness in candela per square meter, where 500 lights a day and 50 a night.

Parameters

  • Color: Its color, sRGB.
  • Brightness: How bright it is, in candela per square meter.

Laid out as abyss_core::lighting::AmbientLighting is, 16 bytes.

Properties

Color

public Vector3 Color { get; init; }

Its color, sRGB.

Brightness

public float Brightness { get; init; }

How bright it is, in candela per square meter.