diff options
-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)); |