Home | History | Annotate | Download | only in Debug
      1 uniform sampler2D sampler2d;
      2 uniform mat4 uMatrix;
      3 uniform mat4 uRotM;
      4 uniform vec4 uIndex;
      5 
      6 attribute vec4 aPosition; 
      7 attribute vec4 aTexCoord;
      8 attribute mat4 aTransM;
      9 
     10 varying vec4 vTexCoord;
     11 varying vec4 vNormal;
     12 
     13 void main()
     14 {	
     15 	vTexCoord = aTexCoord;// + texture2D(sampler2d, aTexCoord.xy);
     16 	gl_Position = uMatrix * aPosition;// * vec4(0.5,0.5,0.5,1);
     17 	//gl_Position = aPosition;
     18 	//gl_Position = aTransM * gl_Position;
     19     //gl_Position = aPosition * vec4(0.2, 0.2, 0.2, 1);
     20 	vNormal = aPosition / vec4(vec3(1.732050807568877),1);
     21 	gl_PointSize = aTexCoord.z;
     22     //vNormal = vec4(vec3(0.01),1);
     23 	//vNormal = (uRotM * vec4(vNormal, 0)).xyz;
     24 }
     25