943ba2a4fe
Incorporated changes to effects file syntax. Changed Till's landmass to mix in the base terrain texture. Some shader cleanup. Also, add a GUI control for enabling shaders.
15 lines
375 B
GLSL
15 lines
375 B
GLSL
varying vec4 rawpos;
|
|
varying vec4 ecPosition;
|
|
varying vec3 VNormal;
|
|
varying vec3 Normal;
|
|
|
|
void main(void)
|
|
{
|
|
rawpos = gl_Vertex;
|
|
ecPosition = gl_ModelViewMatrix * gl_Vertex;
|
|
VNormal = normalize(gl_NormalMatrix * gl_Normal);
|
|
Normal = normalize(gl_Normal);
|
|
|
|
gl_Position = ftransform();
|
|
gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
|
|
}
|