Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

Light2d

Point light for an explicitly lit sprite; Z provides normal-map elevation.

public struct Light2d : IComponent<Light2d>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

Position

public Vector3 Position;

Position in world metres.

Default: [0,0,0].

Color

public Vector3 Color;

Linear RGB intensity.

Default: [1,1,1].

Radius

public float Radius;

Finite influence radius in metres.

Range: [0.001, ∞]. Default: 5.

Shadows

public bool Shadows;

Test tile/sprite occluder segments between light and fragment.

Default: false.

Methods

Access

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

No description yet.

Insert

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

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.