Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /// FRAGMENT
  2. #version 140
  3.  
  4. out vec4 fs_color;
  5.  
  6. void main() {
  7.     fs_color = vec4(1, 1, 0, 1);
  8. }
  9.  
  10. /// VERTEX
  11. #version 140
  12.  
  13. in vec2 v_position;
  14.  
  15. uniform mat3 u_transform;
  16.  
  17. void main() {
  18.     vec3 positionVector = u_transform * vec3(v_position, 1);
  19.     gl_Position = vec4(positionVector.xy, 0, positionVector.z);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement