1
0
forked from 0ad/0ad
0ad/binaries/data/mods/official/shaders/model_light.vs
prefect f1ee2cd66d Add the notion of render paths and an appropriate configuration option.
Add Ogl_Shader and Ogl_Program handle types for shaders/programs loaded
from
files.
In the vertexshader render path, use a vertex program for lighting for
optimization.

This was SVN commit r2853.
2005-10-05 16:42:09 +00:00

9 lines
185 B
GLSL

vec3 lighting(vec3 normal);
void main()
{
gl_FrontColor = gl_BackColor = vec4(lighting(gl_Normal),1.0) * gl_Color;
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_Position = ftransform();
}