408
edits
| Line 1,543: | Line 1,543: | ||
Up to inner_angle, the light will have full intensity. From inner to outer angle the light will linearly fade to outer_gain. From outer angle to zero angle, the light intensity will linearly fade to zero.  | Up to inner_angle, the light will have full intensity. From inner to outer angle the light will linearly fade to outer_gain. From outer angle to zero angle, the light intensity will linearly fade to zero.  | ||
To better explain the relation of the variables ''inner_angle'', ''outer_angle'' and ''zero angle'', this is the algorithm that produces the scalar value ''directional_fade'' from which the intensity value is defined in the shaders file ''light-ALS.frag'':  | '''Note:''' To better explain the relation of the variables ''inner_angle'', ''outer_angle'' and ''zero angle'', this is the algorithm that produces the scalar value ''directional_fade'' from which the intensity value is defined in the shaders file ''light-ALS.frag'':  | ||
<syntaxhighlight lang="xml">  | <syntaxhighlight lang="xml">  | ||
edits