2013-07-03 22:32:11 -04:00
|
|
|
// Jean-manuel clemencon supertuxkart
|
|
|
|
// Creates a cone lightbeam effect by smoothing edges
|
|
|
|
|
|
|
|
varying vec2 uv;
|
|
|
|
varying vec3 eyeVec;
|
|
|
|
varying vec3 normal;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
gl_TexCoord[0] = gl_MultiTexCoord0;
|
2013-07-29 10:40:42 -04:00
|
|
|
vec4 viewp = gl_ModelViewMatrix * gl_Vertex;
|
2013-07-03 22:32:11 -04:00
|
|
|
|
2013-07-29 10:40:42 -04:00
|
|
|
eyeVec = normalize(-viewp).xyz;
|
|
|
|
normal = gl_NormalMatrix * gl_Normal;
|
2013-07-03 22:32:11 -04:00
|
|
|
|
2013-07-29 10:40:42 -04:00
|
|
|
gl_Position = ftransform();
|
2013-07-03 22:32:11 -04:00
|
|
|
|
2013-07-29 10:40:42 -04:00
|
|
|
uv = gl_TexCoord[0].st;
|
2013-07-03 22:32:11 -04:00
|
|
|
}
|