IsCastingShadow
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lua-function|isCastingShadow|object}} | ||
+ | |||
Check if light has shadow casting enabled. | Check if light has shadow casting enabled. | ||
+ | |||
+ | {{lua-function-param|object|object to operate on}} | ||
if isCastingShadow(lightObject) then | if isCastingShadow(lightObject) then |
Latest revision as of 00:16, 9 February 2014
isCastingShadow(object)
Check if light has shadow casting enabled.
-
object
: object to operate on
if isCastingShadow(lightObject) then -- Shadow casting is enabled else -- Shadow casting is disabled end
To enable or disable shadow casting use enableShadow