15 lines
415 B
GLSL
15 lines
415 B
GLSL
// -*- mode: C; -*-
|
|
// Licence: GPL v2
|
|
// Author: Frederic Bouvier.
|
|
//
|
|
|
|
varying vec3 ecNormal;
|
|
varying float alpha;
|
|
void main() {
|
|
ecNormal = gl_NormalMatrix * gl_Normal;
|
|
gl_Position = ftransform();
|
|
gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
|
|
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;
|
|
}
|