wiki.sine.space | sinespace

Scripting/SLight

From wiki.sine.space
Revision as of 12:16, 20 April 2017 by Mike (CNDG) (Talk | contribs)

Jump to: navigation, search

Light sources within the Space scene.

Properties

Enabled

bool Enabled { get; set;}

Enable/Disable this light.

-- Disable this object's Light Source --
Space.Host.ExecutingObject.Light.Enabled = false;


Range

float Range { get; set;}

Get/Set the effective range of the light source.

-- Change the range of the Light --
Space.Host.ExecutingObject.Light.Range = 8.0;


Intensity

float Intensity { get; set;}

Get/Set the intensity of the light source. (Multiplied with the light color)

-- Get the intensity of the Light --
Space.Log("Intensity: " .. Space.Host.ExecutingObject.Light.Intensity);


Color

SVector Color { get; set;}

Get/Set the color of the light.

No example provided yet


Type

SLightType Type { get; set;}

Get/Set the type of light this source is.

No example provided yet