diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-04-11 08:46:43 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-04-11 08:46:43 -0400 |
commit | 5c48f10a46e470493328978d6ccee8722c743f31 (patch) | |
tree | fc01f93915327d1136b698d5e995c01c538828bd /shader.frag | |
parent | 75a344b842d534830d7d420c7fd6fda6ad33e625 (diff) |
merchant revision
Diffstat (limited to 'shader.frag')
-rw-r--r-- | shader.frag | 14 |
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;
-}
|