Advertisement
Guest User

Untitled

a guest
Jul 30th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. afficheurShader.position = gl.getAttribLocation( afficheurShader , "position" );
  2. gl.enableVertexAttribArray( afficheurShader.position );
  3. gl.vertexAttribPointer ( afficheurShader.position , 2 , gl.FLOAT , false , 0 , 0 );
  4. gridShader.position = gl.getAttribLocation( gridShader , "position" );
  5. gl.enableVertexAttribArray( gridShader.position );
  6. gl.vertexAttribPointer ( gridShader.position , 2 , gl.FLOAT , false , 0 , 0 );
  7. mainShader.position = gl.getAttribLocation( mainShader , "position" );
  8. gl.enableVertexAttribArray( mainShader.position) ;
  9. gl.vertexAttribPointer ( mainShader.position , 2 , gl.FLOAT , false , 0 , 0 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement