Advertisement
adwas33

Untitled

Mar 21st, 2022
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. // Kody shaderów
  2. const GLchar* vertexSource = R"glsl(
  3. #version 150 core
  4. in vec3 position;
  5. in vec3 color;
  6. uniform mat4 model;
  7. uniform mat4 view;
  8. uniform mat4 proj;
  9. out vec3 Color;
  10. void main(){
  11.  
  12. Color = color;
  13.  
  14. gl_Position = proj * view * model * vec4(position, 1.0);
  15.  
  16. }
  17. )glsl";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement