CfgLights – Arma 3
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (fixed a category) |
m (Attenuation subclass) |
||
Line 5: | Line 5: | ||
class CfgLights | class CfgLights | ||
{ | { | ||
color[] = {0,0,1,1}; | color[] = {0,0,1,1}; // Array of RGBA | ||
ambient[] = {0,0.25,1,0.5}; // Array of RGBA | ambient[] = {0,0.25,1,0.5}; // Array of RGBA | ||
intensity = 25; // Finite number between 0 and 1e10 | intensity = 25; // Finite number between 0 and 1e10 | ||
brightness = 0.1; // Only used if intensity isn't set. Also deprecated. intensity = (brightness*50)^2 | brightness = 0.1; // Only used if intensity isn't set. Also deprecated. intensity = (brightness*50)^2 | ||
class Attenuation { | |||
start = 1; // number | |||
constant = 1; // number | |||
linear = 1; // number | |||
quadratic = 1; // number | |||
hardLimitStart = 1e20*0.7; // Default is (1e20 * 0.7) | |||
hardLimitEnd = 1e20; // Default is 1e20 | |||
}; | |||
dayLight = 1; // number but handled as boolean internally. 0 == false, everything else == true | dayLight = 1; // number but handled as boolean internally. 0 == false, everything else == true | ||
useFlare = 1; // number/boolean. same as above. | useFlare = 1; // number/boolean. same as above. |
Revision as of 12:20, 21 February 2018
CfgLights
Here is a template with some descriptions:
class CfgLights { color[] = {0,0,1,1}; // Array of RGBA ambient[] = {0,0.25,1,0.5}; // Array of RGBA intensity = 25; // Finite number between 0 and 1e10 brightness = 0.1; // Only used if intensity isn't set. Also deprecated. intensity = (brightness*50)^2 class Attenuation { start = 1; // number constant = 1; // number linear = 1; // number quadratic = 1; // number hardLimitStart = 1e20*0.7; // Default is (1e20 * 0.7) hardLimitEnd = 1e20; // Default is 1e20 }; dayLight = 1; // number but handled as boolean internally. 0 == false, everything else == true useFlare = 1; // number/boolean. same as above. flareSize = 1; // number. Default is 1 flareMaxDistance = 600; // number. Default is 600 }