Struct LightData
- Namespace
- ReFuel.Scenegraph
- Assembly
- ReFuel.dll
[SystemData(typeof(LightSystem))]
public struct LightData : ISystemData<LightData, LightSystem>, ISystemData<LightData, LightSystem, LightData>, ISystemData<LightData, LightSystem, PointLightConstructor>, ISystemData<LightData, LightSystem, SpotLightConstructor>, ISystemData<LightData, LightSystem, SunLightConstructor>, ISystemData<LightData, LightSystem, AreaLightConstructor>, ISystemData
- Implements
- Inherited Members
Constructors
LightData(in AreaLightConstructor)
public LightData(in AreaLightConstructor area)
Parameters
areaAreaLightConstructor
LightData(in PointLightConstructor)
public LightData(in PointLightConstructor point)
Parameters
pointPointLightConstructor
LightData(in SpotLightConstructor)
public LightData(in SpotLightConstructor spot)
Parameters
spotSpotLightConstructor
LightData(in SunLightConstructor)
public LightData(in SunLightConstructor sun)
Parameters
Fields
Color
[UnionDisplay(typeof(bool), "UseTemperature")]
[UnionChoose(false, "RGB")]
[UnionChoose(true, "Temperature")]
public LightData.ColorUnion Color
Field Value
Direction
[EditorDisable(0, "Type")]
public Vector3 Direction
Field Value
Power
public float Power
Field Value
Specific
[UnionDisplay(typeof(LightType), "Type")]
[UnionChoose(1, "Spot")]
[UnionChoose(3, "Area")]
public LightData.SpecificUnion Specific
Field Value
Type
public LightType Type
Field Value
UseTemperature
public bool UseTemperature
Field Value
Properties
Owner
The entity that owns this data.
public WeakReference<Entity> Owner { readonly get; set; }
Property Value
System
A reference to the system owning this data.
public SystemBase System { readonly get; set; }