Lights
Light actor functions. Create a light with CreateLightActor().
- Function LightIsCastingShadow(actor)
Returns true if shadow casting is enabled for the given light.
See also
SetLightShadowCast()
- Function GetLightType(actor)
Returns the type of light.
Returns -1 if it does not have a type (ie. its not a light)
Possible Light Types:
- LIGHT_TYPE_POINT
- LIGHT_TYPE_DIRECTIONAL
- LIGHT_TYPE_SPOT
See also
SetLightType()
- Function GetLightRadius(actor)
Returns the radius of the light
- Sub SetLightType(actor, light_type)
Sets the type of light.
Possible Light Types:
- LIGHT_TYPE_POINT
- LIGHT_TYPE_DIRECTIONAL
- LIGHT_TYPE_SPOT
See also
SetLightType()
- Sub SetLightRadius(actor, radius)
Sets the radius of a light
See also
GetLightRadius()
- Sub SetLightShadowCast(actor, flag)
Sets whether a light will cast shadows on actors that have shadows enabled
See also
- Sub SetLightAmbientColor(actor, color)
Sets the ambient color for a light
- Function GetLightAmbientColor(actor)
Returns the ambient color of a light
- Sub SetLightAttenuation(actor, l_constant, l_linear, l_quadratic)
Sets the light strength fading over distance. Overrident by setting radius.
- Sub GetLightAttenuation(actor, ByRef constant, ByRef linear, ByRef quadratic)
Gets the strength of the light
- Sub SetLightDiffuseColor(actor, color)
Sets a light’s diffuse color
- Function GetLightDiffuseColor(actor)
Returns the diffuse color of the light
- Sub SetLightFalloff(actor, falloff)
Sets the strength decrease between the inner and outer cone of a light.
Note: Only applies to spot lights
- Function GetLightFalloff(actor, falloff)
Returns the strength decrease between the inner and outer cone of a light
- Function GetLightInnerCone(actor)
Returns the inner cone of a spot light
- Sub SetLightInnerCone(actor, angle)
Sets the inner cone of a spot light
- Sub SetLightOuterCone(actor, angle)
Sets the outer cone of a spot light
- Function GetLightOuterCone(actor)
Returns the outer cone of a spot light
- Sub SetLightSpecularColor(actor, color)
Sets the specular color of a light
- Function GetLightSpecularColor(actor)
Returns the specular color of a light