aboutsummaryrefslogtreecommitdiffstats
path: root/frag.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'frag.glsl')
-rw-r--r--frag.glsl10
1 files changed, 6 insertions, 4 deletions
diff --git a/frag.glsl b/frag.glsl
index 5aa26d8..ff88e1f 100644
--- a/frag.glsl
+++ b/frag.glsl
@@ -1,8 +1,10 @@
-// Copyright (C) 2018 Tomasz Kramkowski <tk@the-tk.com>
-// SPDX-License-Identifier: MIT
+/*
+ * Copyright (C) 2018 Tomasz Kramkowski <tk@the-tk.com>
+ * SPDX-License-Identifier: MIT
+ */
#version 330 core
out vec4 color;
-in vec3 vnorm;
+in vec3 fnorm;
in vec3 fpos;
in vec2 fuv;
in vec3 lipos;
@@ -16,7 +18,7 @@ void main()
float amb = 0.1;
- vec3 norm = normalize(vnorm);
+ vec3 norm = normalize(fnorm);
vec3 lidir = normalize(lipos - fpos);
float dif = max(dot(norm, lidir), 0.0);