GetLightIntensity

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "Get the light intensity. Light0 = getObject("Light0") -- Scene update function onSceneUpdate() flash = getLightIntensity(Light0) -- you can rename flash ...")
 
m
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
{{lua-function|getLightIntensity|object}}
 +
 
Get the light intensity.
 
Get the light intensity.
 +
 +
{{lua-function-param|object|object to operate on}}
  
 
     Light0 = getObject("Light0")
 
     Light0 = getObject("Light0")
Line 8: Line 12:
  
 
Advanced use in setLightIntensity over here : [[http://wiki.maratis3d.org/index.php?title=SetLightIntensity]]
 
Advanced use in setLightIntensity over here : [[http://wiki.maratis3d.org/index.php?title=SetLightIntensity]]
 +
 +
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:Light]]

Latest revision as of 01:29, 9 February 2014

getLightIntensity(object)

Get the light intensity.

  • object : object to operate on
   Light0 = getObject("Light0")
   -- Scene update 
   function onSceneUpdate()
       flash = getLightIntensity(Light0) -- you can rename flash to whatever you like
   end

Advanced use in setLightIntensity over here : [[1]]

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox