aboutsummaryrefslogtreecommitdiffstats
path: root/vert.glsl
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2018-04-30 19:56:33 +0100
committerTomasz Kramkowski <tk@the-tk.com>2018-04-30 19:56:33 +0100
commit1c1da6cb1854c9c1cb74206d179d9503496bbe02 (patch)
tree5e4e661c965a4626aa13d43e7efb5696738e7207 /vert.glsl
parent89b5603110c47e30450ce05573c6b95ef38d8fd7 (diff)
downloadfaqe-1c1da6cb1854c9c1cb74206d179d9503496bbe02.tar.gz
faqe-1c1da6cb1854c9c1cb74206d179d9503496bbe02.tar.xz
faqe-1c1da6cb1854c9c1cb74206d179d9503496bbe02.zip
shaders: fix initialisation of vec3
Diffstat (limited to 'vert.glsl')
-rw-r--r--vert.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/vert.glsl b/vert.glsl
index 5e4e43a..5292e99 100644
--- a/vert.glsl
+++ b/vert.glsl
@@ -15,7 +15,7 @@ uniform mat4 proj;
void main()
{
- vec3 light = { 1.2, 1.0, 2.0 };
+ 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));