aboutsummaryrefslogtreecommitdiffstats
path: root/shader.frag
diff options
context:
space:
mode:
Diffstat (limited to 'shader.frag')
-rw-r--r--shader.frag4
1 files changed, 2 insertions, 2 deletions
diff --git a/shader.frag b/shader.frag
index 7627a12..83c8bdc 100644
--- a/shader.frag
+++ b/shader.frag
@@ -1,4 +1,4 @@
-#version 140
+#version 130
uniform vec2 lightLocation;
uniform vec3 lightColor;
@@ -6,7 +6,7 @@ uniform float screenHeight;
void main(){
float distance = length(lightLocation - gl_FragCoord.xy);
- float attenuation = 1.0 / distance;
+ float attenuation = 3.0 / distance;
vec4 color = vec4(attenuation, attenuation, attenuation, pow(attenuation, 3)) * vec4(lightColor, 1);
gl_FragColor = color;