diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2018-04-30 19:56:33 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2018-04-30 19:56:33 +0100 |
commit | 1c1da6cb1854c9c1cb74206d179d9503496bbe02 (patch) | |
tree | 5e4e661c965a4626aa13d43e7efb5696738e7207 | |
parent | 89b5603110c47e30450ce05573c6b95ef38d8fd7 (diff) | |
download | faqe-1c1da6cb1854c9c1cb74206d179d9503496bbe02.tar.gz faqe-1c1da6cb1854c9c1cb74206d179d9503496bbe02.tar.xz faqe-1c1da6cb1854c9c1cb74206d179d9503496bbe02.zip |
shaders: fix initialisation of vec3
-rw-r--r-- | frag.glsl | 4 | ||||
-rw-r--r-- | vert.glsl | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -8,8 +8,8 @@ in vec3 lipos; void main() { - vec3 objco = { 1.0, 0.5, 0.31 }; - vec3 lico = { 1.0, 1.0, 1.0 }; + vec3 objco = vec3(1.0, 0.5, 0.31); + vec3 lico = vec3(1.0, 1.0, 1.0); float amb = 0.1; @@ -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)); |