EnableShadow
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
| Line 11: | Line 11: | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
| + | [[Category:Lua function]] | ||
| + | [[Category:Object]] | ||
Revision as of 18:28, 4 February 2014
Enable or disable shadow casting on the light object. All objects affected by light with enabled shadow casting will cast shadows on itself and on other objects.
Example:
light = getObject("Sun")
-- Enable shadow casting
enableShadow(light, true)
-- Disable shadow casting
enableShadow(light, false)
To check if shadow casting is enabled use isCastingShadow