aboutsummaryrefslogtreecommitdiffstats
path: root/vert.glsl
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2018-05-03 14:12:44 +0100
committerTomasz Kramkowski <tk@the-tk.com>2018-05-03 14:12:44 +0100
commit232035b7e24d2a49a472c28b326f2227af11963d (patch)
treec28ab15c7117b7eff45a61faf12734c363b5f944 /vert.glsl
parenta1e93038af0a739b9af57bd40ffbee6963dc3242 (diff)
downloadfaqe-232035b7e24d2a49a472c28b326f2227af11963d.tar.gz
faqe-232035b7e24d2a49a472c28b326f2227af11963d.tar.xz
faqe-232035b7e24d2a49a472c28b326f2227af11963d.zip
Animate the light position around the cube
Diffstat (limited to 'vert.glsl')
-rw-r--r--vert.glsl3
1 files changed, 1 insertions, 2 deletions
diff --git a/vert.glsl b/vert.glsl
index 9fea064..19469a4 100644
--- a/vert.glsl
+++ b/vert.glsl
@@ -15,11 +15,10 @@ out vec3 lipos;
uniform mat4 model;
uniform mat4 view;
uniform mat4 proj;
+uniform vec3 light;
void main()
{
- vec3 light = vec3(1.2, 1.0, 2.0);
-
gl_Position = proj * view * model * vec4(pos, 1.0);
fpos = vec3(view * model * vec4(pos, 1.0));
fuv = uv;