Blame view

res/shaders/gray.vert 342 Bytes
9f1cb386   dangge   auto package
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  attribute vec4 a_position;
  attribute vec2 a_texCoord;
  attribute vec4 a_color;  
  
  #ifdef GL_ES
  varying lowp vec4 v_fragmentColor;
  varying mediump vec2 v_texCoord;
  #else
  varying vec4 v_fragmentColor;
  varying vec2 v_texCoord;
  #endif 
  
  void main()
  {
  	gl_Position = CC_PMatrix * a_position; 
  	v_fragmentColor = a_color;
  	v_texCoord = a_texCoord;
  }