Project

General

Profile

« Previous | Next » 

Revision 2dacdeb2

Added by Leszek Koltunski almost 8 years ago

remove the 'Color' vertex attribute.

View differences:

src/main/res/raw/main_vertex_shader.glsl
29 29
uniform mat4 u_MVMatrix;                  // A constant representing the combined model/view matrix.       		
30 30
		 
31 31
attribute vec3 a_Position;                // Per-vertex position information we will pass in.   				
32
attribute vec4 a_Color;                   // Per-vertex color information we will pass in. 				
33
attribute vec3 a_Normal;                  // Per-vertex normal information we will pass in.      
32
attribute vec3 a_Normal;                  // Per-vertex normal information we will pass in.
34 33
attribute vec2 a_TexCoordinate;           // Per-vertex texture coordinate information we will pass in. 		
35 34
		  
36 35
varying vec3 v_Position;                  //      		
37
varying vec4 v_Color;                     // Those will be passed into the fragment shader.          		
38
varying vec3 v_Normal;                    //  
36
varying vec3 v_Normal;                    //
39 37
varying vec2 v_TexCoordinate;             //  		
40 38

  
41 39
uniform int vNumEffects;                  // total number of vertex effects
......
351 349
#endif
352 350
   
353 351
  v_Position      = vec3(u_MVMatrix*v);           
354
  v_Color         = a_Color;              
355
  v_TexCoordinate = a_TexCoordinate;                                         
352
  v_TexCoordinate = a_TexCoordinate;
356 353
  v_Normal        = normalize(vec3(u_MVMatrix*n));
357 354
  gl_Position     = u_MVPMatrix*v;      
358 355
  }                               

Also available in: Unified diff