EnableShadow

From MaratisWiki
Revision as of 01:16, 9 February 2014 by Dahnielson (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

enableShadow(object, bool)

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.

  • object : object to operate on
  • bool : state
light = getObject("Sun")
-- Enable shadow casting
enableShadow(light, true)
-- Disable shadow casting
enableShadow(light, false)

To check if shadow casting is enabled use isCastingShadow

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox