Type:LightType: Difference between revisions

From Resonite Wiki
mNo edit summary
Add information about various types, standard page format
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
LightType is an Enum that is used by [[Component:Light]] and describes the type of light emitter shape a light can be.
{{Infobox Enum
|name=LightType
|type=FrooxEngine.LightType
}}
 
'''LightType''' is an Enum that is used by [[Component:Light|Light]]. It describes the type of light emitter shape a light can be.




{{Table EnumValues
{{Table EnumValues
|Point|0|
|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.
|Spot|1|
|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.
|Directional|2|
|Spot|2|The light is represented as a spotlight pointing in a direction. This can be used to model car headlights, for example.
}}
}}
[[Category:Type]] [[Category:Enums]]

Latest revision as of 14:06, 25 March 2024

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.