aboutsummaryrefslogtreecommitdiffstats
path: root/shader.frag
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-04-11 08:46:43 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-04-11 08:46:43 -0400
commit5c48f10a46e470493328978d6ccee8722c743f31 (patch)
treefc01f93915327d1136b698d5e995c01c538828bd /shader.frag
parent75a344b842d534830d7d420c7fd6fda6ad33e625 (diff)
merchant revision
Diffstat (limited to 'shader.frag')
-rw-r--r--shader.frag14
1 files changed, 0 insertions, 14 deletions
diff --git a/shader.frag b/shader.frag
deleted file mode 100644
index 55527a1..0000000
--- a/shader.frag
+++ /dev/null
@@ -1,14 +0,0 @@
-#version 120
-
-uniform vec2 lightLocation;
-uniform vec3 lightColor;
-uniform float lightStrength;
-uniform float screenHeight;
-
-void main(){
- float distance = length(lightLocation - gl_FragCoord.xy);
- float attenuation = lightStrength / distance;
- vec4 color = vec4(attenuation, attenuation, attenuation, (pow(attenuation, 3)) * vec4(lightColor, 2))+.5;
-
- gl_FragColor = color;
-}