diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2018-05-03 14:12:44 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2018-05-03 14:12:44 +0100 |
commit | 232035b7e24d2a49a472c28b326f2227af11963d (patch) | |
tree | c28ab15c7117b7eff45a61faf12734c363b5f944 /vert.glsl | |
parent | a1e93038af0a739b9af57bd40ffbee6963dc3242 (diff) | |
download | faqe-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.glsl | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |