Class PointLight
A point light.
Examples
var lightMaterial = new Material("Light", Colors.White, unlit: true);
var t = new Transform(0, 0, 5);
var lightBulb = new Mass(Polygon.Rectangle(0.1, 0.1), 0.1, lightMaterial, transform: t);
var floor = new Floor(Polygon.Rectangle(20, 20), 0.1);
var pointLight = new PointLight(Colors.White, t, 20);
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 class PointLight : Light, INotifyPropertyChanged
Constructors
PointLight(Color, Transform, Double, Guid, String)
A point light.
Declaration
public PointLight(Color color, Transform transform, double intensity = 1, Guid id = default(Guid), string name = null)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The light's color. |
Transform | transform | The light's transform. |
System.Double | intensity | The light's intensity measured in candela. |
System.Guid | id | The light's unique id. |
System.String | name | The light's name. |
Implements
System.ComponentModel.INotifyPropertyChanged