diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-04-13 07:41:31 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-04-13 07:41:31 -0400 |
commit | 51f57a9eb06cd0a4a967915ee60a323fc85fafba (patch) | |
tree | 3ac6459043382584ad4b35c78be4cb0717c8ddda /shader.frag | |
parent | a3f1f1bff9b58d90a2b60405ca40728cdd836fa6 (diff) | |
parent | 03130c5bcec3c885a1be005c24e192dfb57f3fe5 (diff) |
Merge branch 'master' of https://github.com/tcsullivan/gamedev
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;
-}
|