2012-05-01 06:47:38 +00:00
|
|
|
// -*- mode: C; -*-
|
|
|
|
// Licence: GPL v2
|
|
|
|
// Author: Frederic Bouvier.
|
2012-03-25 17:03:52 +00:00
|
|
|
//
|
2012-05-01 06:47:38 +00:00
|
|
|
|
2012-03-25 17:03:52 +00:00
|
|
|
varying vec3 ecNormal;
|
2012-04-03 21:29:30 +00:00
|
|
|
varying float alpha;
|
2012-03-25 17:03:52 +00:00
|
|
|
void main() {
|
|
|
|
ecNormal = gl_NormalMatrix * gl_Normal;
|
|
|
|
gl_Position = ftransform();
|
|
|
|
gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
|
2012-04-03 21:29:30 +00:00
|
|
|
gl_FrontColor.rgb = gl_Color.rgb; gl_FrontColor.a = 1.0;
|
|
|
|
gl_BackColor.rgb = gl_Color.rgb; gl_BackColor.a = 0.0;
|
|
|
|
alpha = gl_Color.a;
|
2012-03-25 17:03:52 +00:00
|
|
|
}
|