View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0009113||New Feature Requests||[All Projects] General||public||2016-01-13 06:37||2017-06-18 20:56|
|Summary||0009113: [Request] Add Intensity for lights|
Changing lights intensity by a function and/or with createLight as an optional argument.
I'm sure this is possible right?
|Tags||No tags attached.|
You can implement this easily in Lua, because the intensity of a light is proportional to its color brightness, so multiplying a bright color's RGB values with a coefficient in the range 0-1 is enough. I did this function as an example of a complete implementation of an extra intensity argument in the createLight function:
local intensityArgNumber = 13 -- The intensity extra argument position. Should be greater than 8