lightbeam: Remove unused uniform, add some spacing

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13381 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
curaga
2013-07-29 14:41:13 +00:00
parent b4cd5e4ec9
commit 57e692c61c
2 changed files with 3 additions and 3 deletions

View File

@@ -4,8 +4,9 @@
// TODO: Soft edges when it intesects geometry
// Some artefacts are still visible
uniform sampler2D main_texture;
uniform sampler2D tex;
uniform float transparency;
varying vec2 uv;
varying vec3 eyeVec;
varying vec3 normal;
@@ -13,7 +14,7 @@ varying vec3 normal;
void main()
{
float inter = dot(normal, eyeVec);
float m = texture2D(main_texture, vec2(0.5, uv.y)).r;
float m = texture2D(tex, vec2(0.5, uv.y)).r;
float alpha = inter * inter * inter * inter * m;
gl_FragColor = vec4(1.0, 1.0, 0.8, alpha);

View File

@@ -1,7 +1,6 @@
// Jean-manuel clemencon supertuxkart
// Creates a cone lightbeam effect by smoothing edges
uniform float time;
varying vec2 uv;
varying vec3 eyeVec;
varying vec3 normal;