UFO: Alien Invasion
Loading...
Searching...
No Matches
light_vs.glsl
Go to the documentation of this file.
1/**
2 * @file
3 * @brief Lighting vertex shader.
4 */
5
6vec3 point;
7out_qualifier vec3 normal;
8
9/**
10 * @brief LightVertex.
11 */
12void LightVertex(void) {
13 /* Pass the interpolated normal and position along for dynamic lights.*/
14 normal = normalize(vec3(gl_NormalMatrix * Normal));
15 point = vec3(gl_ModelViewMatrix * Vertex);
16}