Class Light
Inherited Members
Namespace: Slipe.Client.Lights
Assembly: SlipeClient.dll
Syntax
[DefaultElementClass(ElementType.Light)]
public class Light : PhysicalElement
Constructors
| Improve this Doc View SourceLight(LightType, Vector3, Single)
Create a simple red light
Declaration
public Light(LightType type, Vector3 position, float radius = 3F)
Parameters
Type | Name | Description |
---|---|---|
LightType | type | |
Vector3 | position | |
Single | radius |
Light(LightType, Vector3, Single, Color, Vector3, Boolean)
Create a light with all the parameters
Declaration
public Light(LightType type, Vector3 position, float radius, Color color, Vector3 direction, bool createShadow = false)
Parameters
Type | Name | Description |
---|---|---|
LightType | type | |
Vector3 | position | |
Single | radius | |
Color | color | |
Vector3 | direction | |
Boolean | createShadow |
Properties
| Improve this Doc View SourceColor
Get and set the color of this light
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Direction
Get and set the direction of this light
Declaration
public Vector3 Direction { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
LightType
Get the type of this light
Declaration
public LightType LightType { get; }
Property Value
Type | Description |
---|---|
LightType |
Radius
Get and set the radius of this light
Declaration
public float Radius { get; set; }
Property Value
Type | Description |
---|---|
Single |