diff options
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;
-}
|