Light Create

constant, linear, quadratic

Control the axial attenuation, defined only for positional and spot lights. The axial attenuation factor is defined as:
Axial Attenuation Factor = 1/(constant + linear*distance + quadratic*distance*distance)

Example: <light ... constant="1.0" linear="0.0" quadratic="0.0" radial="0.0"/> (default)
(defined in GAMGI_MESA_LIGHT_CONSTANT, GAMGI_MESA_LIGHT_LINEAR,
GAMGI_MESA_LIGHT_QUADRATIC and GAMGI_MESA_LIGHT_RADIAL)
Allowed values: positive real (optional)

radial

Controls the radial attenuation, defined only for spot lights. The radial attenuation factor is defined as:
Radial Attenuation Factor = [max (0, vertex . direction)]**radial

Example: <light ... constant="1.0" linear="0.0" quadratic="0.0" radial="0.0"/> (default)
(defined in GAMGI_MESA_LIGHT_CONSTANT, GAMGI_MESA_LIGHT_LINEAR,
GAMGI_MESA_LIGHT_QUADRATIC and GAMGI_MESA_LIGHT_RADIAL)
Allowed values: positive real (optional)
Home