Class Light
Base class for all lights.
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Elements
Assembly: Hypar.Elements.dll
Syntax
public abstract class Light : Element, INotifyPropertyChanged
Constructors
Light(Double, Color, Transform, Guid, String)
Construct a light.
Declaration
public Light(double intensity, Color color, Transform transform, Guid id, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | intensity | The intensity of the light. |
| Color | color | The color of the light. |
| Transform | transform | The transform of the light. |
| System.Guid | id | The unique identifier of the light. |
| System.String | name | The name of the light. |
Properties
Color
The color of the light. The color's alpha value will be ignored.
Declaration
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Intensity
The intensity of the light measured in lux.
Declaration
public double Intensity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
LightType
The type of the light.
Declaration
public LightType LightType { get; set; }
Property Value
| Type | Description |
|---|---|
| LightType |
Transform
The light's transform. The light will be aimed along the transform's -Z axis.
Declaration
public Transform Transform { get; set; }
Property Value
| Type | Description |
|---|---|
| Transform |
Implements
System.ComponentModel.INotifyPropertyChanged