summaryrefslogtreecommitdiff
path: root/resources/shader.frag
diff options
context:
space:
mode:
Diffstat (limited to 'resources/shader.frag')
-rw-r--r--resources/shader.frag4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/shader.frag b/resources/shader.frag
index 1532caa..b4f60c9 100644
--- a/resources/shader.frag
+++ b/resources/shader.frag
@@ -12,12 +12,12 @@ void main() {
vec3 light_color_ambient = vec3(0.55, 0.55, 1.0);
vec3 light_color_diffuse = vec3(1.0, 0.98, 0.84);
- vec3 lightpos = vec3(7, 17, 10);
+ vec3 lightpos = vec3(7, 65, 10);
float ambient_strength = 0.45;
vec3 ambient = ambient_strength * light_color_ambient;
- vec3 norm = normalize(Normal);
+ vec3 norm = -normalize(Normal);
vec3 light_dir = normalize(lightpos - FragmentPos);
float diff = max(dot(norm, light_dir), 0.0);