This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
set_directional_light_enabled [2017/08/13 07:23] – created justin | set_directional_light_enabled [2020/05/03 11:05] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Enables or disables the map's [[directional light]]. | + | Enables or disables the [[map|map's]] [[directional light]]. |
+ | ====Signature: | ||
<code python> | <code python> | ||
set_directional_light_enabled(enabled) | set_directional_light_enabled(enabled) | ||
Line 12: | Line 13: | ||
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
- | If you'd like to change the color of the directional light instead of toggling | + | If you'd like to change the [[color]] of the directional light instead of turning |
</ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
set_directional_light_enabled(false) | set_directional_light_enabled(false) | ||
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Set Directional Light Color** function to | + | Use the **Set Directional Light Enabled** function to change the overall mood of a scene or to complement another light source' |
</ | </ | ||