prefect
f1ee2cd66d
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.
9 lines
185 B
GLSL
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();
|
|
}
|