Lighting

The static global Lighting class allows you to edit lighting of the current game just like the Lighting Menu. For example, Lighting.light_intensity = 2 then Lighting.apply(). You must call Lighting.apply() for your changes to take affect.

Member Variables

TypeVariable NameDescription
intambient_typeThe source of the ambient light. 1 = Background, 2 = Gradient.
floatambient_intensityThe strength of the ambient light either from the background or gradient. Range is 0-4.
floatlight_intensityThe strength of the directional light shining down in the scene. Range is 0-4.
floatreflection_intensityThe strenght of the reflections from the background. Range is 0-1.

Functions

Return ValueFunction NameDescription
boolapply()Applies all changed made to the Lighting class. This must be called for these changes to take affect.
ColorgetAmbientEquatorColor()Returns the Color of the gradient equator.
ColorgetAmbientGroundColor()Returns the Color of the gradient ground.
ColorgetAmbientSkyColor()Returns the Color of the gradient sky.
ColorgetLightColor()Returns the Color of the directional light.
boolsetAmbientEquatorColor(Color)Sets the Color of the gradient equator.
boolsetAmbientGroundColor(Color)Sets the Color of the ambient ground.
boolsetAmbientSkyColor(Color)Sets the Color of the gradient sky.
boolsetLightColor(Color)Sets the Color of the directional light.