daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 64 in 1 day
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 330
  2.  
  3. in vec3 position;
  4.  
  5. in vec3 normal;
  6. out vec3 frag_normal;
  7.  
  8. in vec2 uv;
  9. out vec2 frag_uv;
  10.  
  11. in vec3 color;
  12. out vec3 frag_color;
  13.  
  14. uniform mat4 model_matrix;
  15. uniform mat4 view_matrix;
  16. uniform mat4 proj_matrix;
  17.  
  18. void main() {
  19.     frag_normal = normal;
  20.     frag_uv = uv;
  21.     frag_color = color;
  22.     gl_Position = proj_matrix * view_matrix * model_matrix * vec4(position, 1.0);
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top