You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
344 B

  1. #ifdef GL_ES
  2. precision mediump float;
  3. #endif;
  4. attribute vec4 position;
  5. uniform mat4 ModelMatrix;
  6. uniform mat4 ViewMatrix;
  7. uniform mat4 ProjectionMatrix;
  8. varying vec4 V_Color;
  9. void main(){
  10. V_Color = vec4(position.x + 0.5, position.y+0.5, position.z +0.5, 1.0);
  11. gl_Position = ProjectionMatrix * ViewMatrix * ModelMatrix * position;
  12. }