Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 17th, 2012  |  syntax: None  |  size: 0.26 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.   attribute vec3 aVertexPosition;
  2.   attribute vec4 aVertexColor;
  3.  
  4.   uniform mat4 uMVMatrix;
  5.   uniform mat4 uPMatrix;
  6.  
  7.   varying vec4 vColor;
  8.  
  9.   void main(void) {
  10.     gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);
  11.     vColor = aVertexColor;
  12.   }