IsCastingShadow

(Difference between revisions)
Jump to: navigation, search
(Created page with "Check if light has shadow casting enabled. isCastingShadow(lightObject) To enable or disable shadow casting use enableShadow")
 
m
Line 1: Line 1:
 
Check if light has shadow casting enabled.
 
Check if light has shadow casting enabled.
  
  isCastingShadow(lightObject)
+
  if isCastingShadow(lightObject) then
 +
    -- Shadow casting is enabled
 +
else
 +
    -- Shadow casting is disabled
 +
end
  
 
To enable or disable shadow casting use [[enableShadow]]
 
To enable or disable shadow casting use [[enableShadow]]

Revision as of 20:02, 12 March 2013

Check if light has shadow casting enabled.

if isCastingShadow(lightObject) then
    -- Shadow casting is enabled
else
    -- Shadow casting is disabled
end

To enable or disable shadow casting use enableShadow

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox