SCRIPTING API / Rendering and effects / PointLight
PointLight
Script access to an entity's Point Light: colour, intensity, range and shadows.
Kindclass
NamespaceKroys.EngineScripting
Members29
Source
Generated/NativeComponents.g.cs, NativeComponents.csDECLARATION
Declaration
Component access: every member takes the entity first, for example PointLight.Has(Entity). The values are the ones the Inspector shows for this component.
Declaration
public static partial class PointLight
REFERENCE
Members
Methods
#public static bool Has(Entity e)Whether the entity has a Point Light component.
#public static bool IsEnabled(Entity e)Reads the Point Light component's Enabled value of the entity.
#public static void SetEnabled(Entity e, bool value)Sets the Point Light component's Enabled value on the entity.
#public static bool CastsShadows(Entity e)Reads the Point Light component's casts shadows flag of the entity.
#public static void SetCastsShadows(Entity e, bool value)Sets the Point Light component's Casts Shadows value on the entity.
#public static Vector3 GetColor(Entity e)Reads the Point Light component's Color value of the entity.
#public static void SetColor(Entity e, Vector3 value)Sets the Point Light component's Color value on the entity.
#public static float GetIntensity(Entity e)Reads the Point Light component's Intensity value of the entity.
#public static void SetIntensity(Entity e, float value)Sets the Point Light component's Intensity value on the entity.
#public static float GetRange(Entity e)Reads the Point Light component's Range value of the entity.
#public static void SetRange(Entity e, float value)Sets the Point Light component's Range value on the entity.
#public static float GetShadowBias(Entity e)Reads the Point Light component's Shadow Bias value of the entity.
#public static void SetShadowBias(Entity e, float value)Sets the Point Light component's Shadow Bias value on the entity.
#public static float GetShadowNormalBias(Entity e)Reads the Point Light component's Shadow Normal Bias value of the entity.
#public static void SetShadowNormalBias(Entity e, float value)Sets the Point Light component's Shadow Normal Bias value on the entity.
#public static float GetShadowSlopeBias(Entity e)Reads the Point Light component's Shadow Slope Bias value of the entity.
#public static void SetShadowSlopeBias(Entity e, float value)Sets the Point Light component's Shadow Slope Bias value on the entity.
#public static float GetShadowStrength(Entity e)Reads the Point Light component's Shadow Strength value of the entity.
#public static void SetShadowStrength(Entity e, float value)Sets the Point Light component's Shadow Strength value on the entity.
#public static float GetShadowNearPlane(Entity e)Reads the Point Light component's Shadow Near Plane value of the entity.
#public static void SetShadowNearPlane(Entity e, float value)Sets the Point Light component's Shadow Near Plane value on the entity.
#public static float GetShadowFarPlane(Entity e)Reads the Point Light component's Shadow Far Plane value of the entity.
#public static void SetShadowFarPlane(Entity e, float value)Sets the Point Light component's Shadow Far Plane value on the entity.
#public static uint GetShadowPcfRadius(Entity e)Reads the Point Light component's Shadow Pcf Radius value of the entity.
#public static void SetShadowPcfRadius(Entity e, uint value)Sets the Point Light component's Shadow Pcf Radius value on the entity.
#public static uint GetShadowResolution(Entity e)Reads the Point Light component's Shadow Resolution value of the entity.
#public static void SetShadowResolution(Entity e, uint value)Sets the Point Light component's Shadow Resolution value on the entity.
#public static bool GetInverseSquareFalloff(Entity e)Reads the Point Light component's Inverse Square Falloff value of the entity.
#public static void SetInverseSquareFalloff(Entity e, bool value)Sets the Point Light component's Inverse Square Falloff value on the entity.
Signatures
public static bool Has(Entity e) public static bool IsEnabled(Entity e) public static void SetEnabled(Entity e, bool value) public static bool CastsShadows(Entity e) public static void SetCastsShadows(Entity e, bool value) public static Vector3 GetColor(Entity e) public static void SetColor(Entity e, Vector3 value) public static float GetIntensity(Entity e) public static void SetIntensity(Entity e, float value) public static float GetRange(Entity e) public static void SetRange(Entity e, float value) public static float GetShadowBias(Entity e) public static void SetShadowBias(Entity e, float value) public static float GetShadowNormalBias(Entity e) public static void SetShadowNormalBias(Entity e, float value) public static float GetShadowSlopeBias(Entity e) public static void SetShadowSlopeBias(Entity e, float value) public static float GetShadowStrength(Entity e) public static void SetShadowStrength(Entity e, float value) public static float GetShadowNearPlane(Entity e) public static void SetShadowNearPlane(Entity e, float value) public static float GetShadowFarPlane(Entity e) public static void SetShadowFarPlane(Entity e, float value) public static uint GetShadowPcfRadius(Entity e) public static void SetShadowPcfRadius(Entity e, uint value) public static uint GetShadowResolution(Entity e) public static void SetShadowResolution(Entity e, uint value) public static bool GetInverseSquareFalloff(Entity e) public static void SetInverseSquareFalloff(Entity e, bool value)
KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.