GBX.lua.Lighting (Object): Difference between revisions

From Goodblox Wiki
Jump to navigationJump to search
(Created page with "{{CatUp|Class reference}} __NOTOC__ The '''Lighting''' object is one of the default containers for any map, and provides information on the lighting conditions around the map...")
 
(lighting is a service!!! (redirect))
Tag: New redirect
 
Line 1: Line 1:
{{CatUp|Class reference}}
#REDIRECT [[GBX.lua.Lighting (Service)]]
__NOTOC__
 
The '''Lighting''' object is one of the default containers for any map, and provides information on the lighting conditions around the map. Can also contain a [[GBX.lua.Sky (Object)|Sky]] object that will alter the skybox.
 
 
==Functions==
 
In addition to the basic functions, the Lighting object also has these:
 
*[[GetMinutesAfterMidnight (Function)|GetMinutesAfterMidnight]]
*[[GetMoonDirection (Function)|GetMoonDirection]]
*[[GetMoonPhase (Function)|GetMoonPhase]]
*[[GetSunDirection (Function)|GetSunDirection]]
*[[SetMinutesAfterMidnight (Function)|SetMinutesAfterMidnight]]
 
==Properties==
 
In addition to the basic properties, the Lighting object also has these:
 
*[[Ambient]]
*[[Brightness]]
*[[ColorShift_Bottom]]
*[[ColorShift_Top]]
*[[GeographicLatitude]]
*[[ShadowColor]]
*[[TimeOfDay]]
 
 
These properties have been changed or are no longer used:
 
*[[BottomAmbientV9]]
*[[ClearColor]]
*[[SpotLightV9]]
*[[TopAmbientV9]]
 
==Events==
 
In addition to the basic events, the Lighting object also has these:
 
*[[LightingChanged (Function)|LightingChanged]]
 
 
[[Category:Goodblox Lua Objects]]

Latest revision as of 20:10, 23 September 2021