You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- ///////////////////////////////////////////////////////////
- // Atttributes
- attribute vec3 a_position;
- attribute vec2 a_texCoord;
- attribute vec4 a_color;
-
- ///////////////////////////////////////////////////////////
- // Uniforms
- uniform mat4 u_projectionMatrix;
-
- ///////////////////////////////////////////////////////////
- // Varyings
- varying vec2 v_texCoord;
- varying vec4 v_color;
-
-
- void main()
- {
- gl_Position = u_projectionMatrix * vec4(a_position, 1);
- v_texCoord = a_texCoord;
- v_color = a_color;
- }
|