bb64fec5d0
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13073 178a84e3-b1eb-0310-8ba1-8eac791a3b58
23 lines
424 B
GLSL
23 lines
424 B
GLSL
// Jean-manuel clemencon supertuxkart
|
|
// Creates a cone lightbeam effect by smoothing edges
|
|
|
|
|
|
uniform float time;
|
|
varying vec2 uv;
|
|
varying vec3 eyeVec;
|
|
varying vec3 normal;
|
|
|
|
void main()
|
|
{
|
|
gl_TexCoord[0] = gl_MultiTexCoord0;
|
|
gl_Position = gl_ModelViewMatrix * gl_Vertex;
|
|
|
|
|
|
eyeVec = normalize(-gl_Position).xyz;
|
|
normal = gl_NormalMatrix * gl_Normal;
|
|
|
|
gl_Position = ftransform();
|
|
|
|
uv = gl_TexCoord[0].st;
|
|
}
|