From 5c48f10a46e470493328978d6ccee8722c743f31 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 11 Apr 2016 08:46:43 -0400 Subject: merchant revision --- shader.frag | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 shader.frag (limited to 'shader.frag') 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; -} -- cgit v1.2.3