Class PointLight
Point light emits light from point in all directions.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[ActorContextMenu("New/Lights/Point Light")]
[ActorToolbox("Lights")]
[Unmanaged]
public class PointLight : LightWithShadow, ISerializable
Constructors
PointLight()
Properties
FallOffExponent
Controls the radial falloff of light when UseInverseSquaredFalloff is disabled.
Declaration
[EditorOrder(14)]
[EditorDisplay("Light", null)]
[Limit(2F, 16F, 0.01F)]
[VisibleIf("UseInverseSquaredFalloff", true)]
[Unmanaged]
public float FallOffExponent { get; set; }
Property Value
System.Single
|
IESBrightnessScale
Global scale for IES brightness contribution
Declaration
[EditorOrder(213)]
[Limit(0F, 10000F, 0.01F)]
[EditorDisplay("IES Profile", "Brightness Scale")]
[Unmanaged]
public float IESBrightnessScale { get; set; }
Property Value
System.Single
|
IESTexture
IES texture (light profiles from real world measured data)
Declaration
[EditorOrder(211)]
[EditorDisplay("IES Profile", "IES Texture")]
[Unmanaged]
public IESProfile IESTexture { get; set; }
Property Value
IESProfile
|
Radius
Gets or sets light radius
Declaration
[EditorOrder(1)]
[EditorDisplay("Light", null)]
[Limit(0F, 100000F, 0.1F)]
[Unmanaged]
public float Radius { get; set; }
Property Value
System.Single
|
SourceLength
Light source bulb length
Declaration
[EditorOrder(3)]
[EditorDisplay("Light", null)]
[Limit(0F, 1000F, 0.01F)]
[Unmanaged]
public float SourceLength { get; set; }
Property Value
System.Single
|
SourceRadius
Light source bulb radius
Declaration
[EditorOrder(2)]
[EditorDisplay("Light", null)]
[Limit(0F, 1000F, 0.01F)]
[Unmanaged]
public float SourceRadius { get; set; }
Property Value
System.Single
|
UseIESBrightness
Enable/disable using light brightness from IES profile
Declaration
[EditorOrder(212)]
[EditorDisplay("IES Profile", "Use IES Brightness")]
[Unmanaged]
public bool UseIESBrightness { get; set; }
Property Value
System.Boolean
|
UseInverseSquaredFalloff
Whether to use physically based inverse squared distance falloff, where Radius is only clamping the light's contribution.
Declaration
[EditorOrder(13)]
[EditorDisplay("Light", null)]
[Unmanaged]
public bool UseInverseSquaredFalloff { get; set; }
Property Value
System.Boolean
|