AlphaFramework API  1.0.3
Properties | List of all members
AlphaFramework.World.Components.LightSource Class Reference

Represents a point light source. More...

Inheritance diagram for AlphaFramework.World.Components.LightSource:
AlphaFramework.World.Components.Render

Properties

Color Color [get, set]
 The color of this point light source. More...
 
XColor ColorValue [get, set]
 Used for XML serialization. More...
 
float Range [get, set]
 The maximum distance at which the light source has an effect. More...
 
Attenuation Attenuation = new Attenuation(1, 0, 0) [get, set]
 Factors describing the attenuation of light intensity over distance. More...
 
- Properties inherited from AlphaFramework.World.Components.Render
Vector3 Shift [get, set]
 How this component is to be shifted before rendering. More...
 
bool ShiftSpecified [get, set]
 Indicates whether Shift has been set to a non-default value. More...
 

Additional Inherited Members

- Public Member Functions inherited from AlphaFramework.World.Components.Render
override string ToString ()
 
Render Clone ()
 Creates a shallow copy of this Render More...
 

Detailed Description

Represents a point light source.

See also
EntityTemplateBase<TSelf>.Render

Property Documentation

◆ Attenuation

Attenuation AlphaFramework.World.Components.LightSource.Attenuation = new Attenuation(1, 0, 0)
getset

Factors describing the attenuation of light intensity over distance.

◆ Color

Color AlphaFramework.World.Components.LightSource.Color
getset

The color of this point light source.

Is not serialized/stored, ColorValue is used for that.

◆ ColorValue

XColor AlphaFramework.World.Components.LightSource.ColorValue
getset

Used for XML serialization.

See also
Color

◆ Range

float AlphaFramework.World.Components.LightSource.Range
getset

The maximum distance at which the light source has an effect.


The documentation for this class was generated from the following file: