diff options
author | hwc487 | 2012-04-11 06:24:05 -0700 |
---|---|---|
committer | hwc487 | 2012-04-11 06:24:05 -0700 |
commit | 1b7592f81c9b47c2b42d78efe385cd979d54d3ca (patch) | |
tree | 4a70966f636ccc33c4319530ae8458eeb74150ba /assets | |
parent | c1a6cacf364d79cbf23b41e7089a1a6d39afea85 (diff) | |
download | ninja-1b7592f81c9b47c2b42d78efe385cd979d54d3ca.tar.gz |
Cloud material
Diffstat (limited to 'assets')
-rw-r--r-- | assets/shaders/Cloud.vert.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/shaders/Cloud.vert.glsl b/assets/shaders/Cloud.vert.glsl index fbd7f40b..c673e40c 100644 --- a/assets/shaders/Cloud.vert.glsl +++ b/assets/shaders/Cloud.vert.glsl | |||
@@ -34,8 +34,8 @@ const float zSpeed = 1.0; | |||
34 | void main() | 34 | void main() |
35 | { | 35 | { |
36 | // Transform position | 36 | // Transform position |
37 | vec4 pos = a_pos; | 37 | vec4 pos = vec4(a_pos,1); |
38 | pos.z += u+time*zSpeed; | 38 | pos.z += u_time*zSpeed; |
39 | gl_Position = u_projMatrix * u_mvMatrix * pos; | 39 | gl_Position = u_projMatrix * u_mvMatrix * pos; |
40 | 40 | ||
41 | v_texCoord0 = texcoord; | 41 | v_texCoord0 = texcoord; |