/* <copyright>
This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
(c) Copyright 2011 Motorola Mobility, Inc.  All Rights Reserved.
</copyright> */


#ifdef GL_ES
precision highp float;
#endif


// attributes
attribute vec3 a_pos;
attribute vec2 texcoord;

// scalar uniforms
uniform float u_time;

// matrix uniforms
uniform mat4 u_mvMatrix;
uniform mat4 u_projMatrix;
uniform mat4 u_worldMatrix;

void main()
{
	float angle = (u_time%360)*2;

	a_pos.z  = sin( a_pos.x + angle);
	a_pos.z += sin( a_pos.y/2 + angle);
	a_pos.z *= a_pos.x * 0.09;
	gl_Position = u_projMatrix * u_mvMatrix * vec4(a_pos,1.0) ;

	gl_FragColor = v_color;
}