Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 450
- #extension GL_ARB_separate_shader_objects : enable
- layout(binding = 0) uniform UBO{
- mat4 model;
- mat4 view;
- mat4 proj;
- } ubo;
- layout(location = 0) in vec4 pos;
- layout(location = 1) in vec4 color;
- layout(location = 2) in vec4 tex;
- layout(location = 0) out vec4 fragColor;
- void main()
- {
- gl_Position = ubo.proj * ubo.view * ubo.model * pos;
- fragColor = color;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement