EnableShadow

(Difference between revisions)
Jump to: navigation, search
(Created page with "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: li...")
 
Line 9: Line 9:
  
 
To check if shadow casting is enabled use [[isCastingShadow]]
 
To check if shadow casting is enabled use [[isCastingShadow]]
 +
 +
[[Category:Lua scripting]]

Revision as of 19:04, 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

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox