Class Light
- Namespace
- BasilEngine.Components
- Assembly
- BasilEngine.dll
[NativeHeader("Bindings/ManagedLight.hpp")]
public class Light : Component
- Inheritance
-
Light
- Inherited Members
Properties
color
Light color as a vector.
public Vector3 color { get; set; }
Property Value
colorB
Blue component of the light color.
public float colorB { get; set; }
Property Value
colorG
Green component of the light color.
public float colorG { get; set; }
Property Value
colorR
Red component of the light color.
public float colorR { get; set; }
Property Value
dirX
X component of the light direction.
public float dirX { get; }
Property Value
dirY
Y component of the light direction.
public float dirY { get; }
Property Value
dirZ
Z component of the light direction.
public float dirZ { get; }
Property Value
direction
Direction of the light (used for directional and spot lights).
public Vector3 direction { get; set; }
Property Value
enabled
Enables or disables light contribution.
public bool enabled { get; set; }
Property Value
innerConeDeg
Inner cone angle in degrees for spot lights.
public float innerConeDeg { get; set; }
Property Value
intensity
Brightness multiplier of the light.
public float intensity { get; set; }
Property Value
outerConeDeg
Outer cone angle in degrees for spot lights.
public float outerConeDeg { get; set; }
Property Value
range
Effective range of the light.
public float range { get; set; }
Property Value
type
Gets or sets the light type.
public Light.LightType type { get; set; }
Property Value
Methods
SetCones(float, float)
Sets both inner and outer cone angles at once.
public void SetCones(float innerDeg, float outerDeg)