Advertisement
RealIsolation

Untitled

May 6th, 2019
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 450
  2. #extension GL_ARB_separate_shader_objects : enable
  3.  
  4. layout(binding = 0) uniform UBO{
  5.     mat4 model;
  6.     mat4 view;
  7.     mat4 proj;
  8. } ubo;
  9.  
  10. layout(location = 0) in vec4 pos;
  11. layout(location = 1) in vec4 color;
  12. layout(location = 2) in vec4 tex;
  13.  
  14. layout(location = 0) out vec4 fragColor;
  15.  
  16. void main()
  17. {
  18.   gl_Position = ubo.proj * ubo.view * ubo.model *  pos;
  19.   fragColor = color;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement