Directional light (against a point or spot) "casts off rays" in parallel, effectively simulating a light source from an infinite distance.
To set this direction, you set the w-component of the light x, y, z, w to position 0.
GLfloat light_position[] = { 1.0, 1.0, 1.0, 0.0 };
source
share