1
0
Fork 0
Univerxel/resource/shaders-src/Tris.vert

23 lines
573 B
GLSL
Raw Normal View History

2020-09-27 20:25:35 +00:00
#version 450
#extension GL_ARB_separate_shader_objects : enable
2020-09-29 19:28:11 +00:00
layout(binding = 0) uniform UniformBufferObject {
mat4 view;
mat4 proj;
} ubo;
layout(push_constant) uniform PushConst {
mat4 model;
} Push;
2020-09-29 19:28:11 +00:00
2020-10-05 08:10:27 +00:00
layout(location = 0) in vec3 inPosition;
2020-09-27 20:25:35 +00:00
layout(location = 1) in vec3 inColor;
2020-10-01 17:54:02 +00:00
layout(location = 2) in vec2 inTexCoord;
2020-09-27 20:25:35 +00:00
layout(location = 0) out vec3 fragColor;
2020-10-01 17:54:02 +00:00
layout(location = 1) out vec2 fragTexCoord;
2020-09-27 20:25:35 +00:00
void main() {
gl_Position = ubo.proj * ubo.view * Push.model * vec4(inPosition, 1.0);
2020-09-27 20:25:35 +00:00
fragColor = inColor;
2020-10-01 17:54:02 +00:00
fragTexCoord = inTexCoord;
2020-09-27 20:25:35 +00:00
}