IsCastingShadow

From MaratisWiki
(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
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{lua-function|isCastingShadow|object}}
 +
 
Check if light has shadow casting enabled.
 
Check if light has shadow casting enabled.
  
  isCastingShadow(lightObject)
+
{{lua-function-param|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]]
 
To enable or disable shadow casting use [[enableShadow]]
 +
 +
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:Object]]

Latest revision as of 01: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

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox