aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorhwc4872012-04-11 06:24:05 -0700
committerhwc4872012-04-11 06:24:05 -0700
commit1b7592f81c9b47c2b42d78efe385cd979d54d3ca (patch)
tree4a70966f636ccc33c4319530ae8458eeb74150ba /assets
parentc1a6cacf364d79cbf23b41e7089a1a6d39afea85 (diff)
downloadninja-1b7592f81c9b47c2b42d78efe385cd979d54d3ca.tar.gz
Cloud material
Diffstat (limited to 'assets')
-rw-r--r--assets/shaders/Cloud.vert.glsl4
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;
34void main() 34void 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;