Type:LightType

From Resonite Wiki
Revision as of 14:06, 25 March 2024 by PJB (talk | contribs) (Add information about various types, standard page format)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Enum
Name: LightType
Type: FrooxEngine.LightType

LightType is an Enum that is used by Light. It describes the type of light emitter shape a light can be.


Values
Name Value Description
Point 0 The light originates from a single point in 3D space. This is typically what you use to model most lights such as light bulbs, torches, etc.
Directional 1 The light originates from a light source "infinitely" far away. It covers the entire world evenly with no falloff. This is most commonly used to model the sun in a typical outdoors environment.
Spot 2 The light is represented as a spotlight pointing in a direction. This can be used to model car headlights, for example.