160
edits
(Quoting GLSL shader code in the Wiki is too detailed (and misleading, generally people expect copy/pastable examples).) |
|||
Line 1,516: | Line 1,516: | ||
====Set directional lights==== | ====Set directional lights==== | ||
[[File:Directional light.jpg|thumb|Explanation of a light radiation pattern]] | |||
For directional lights, you need to assign a pointing vector in aircraft coordinates into which the light cone points and set the directionality flag to true to activate the computations. This is done via: | For directional lights, you need to assign a pointing vector in aircraft coordinates into which the light cone points and set the directionality flag to true to activate the computations. This is done via: | ||
edits