setIntensity
Dynamically update the light's intensity. Meaning depends on light type:
Directional: illuminance in lux
Point/Spot: luminous power in lumen Intensity can be negative.
Parameters
instance
Light instance
intensity
New intensity
Dynamically update the light's intensity from watts and efficiency. Equivalent to setIntensity(watts * 683.0 * efficiency).
Parameters
instance
Light instance
watts
Electrical power
efficiency
Efficiency as a fraction