vktutorial/shaders/simple_shader.vert

17 lines
307 B
GLSL
Raw Permalink Normal View History

2024-02-21 13:28:50 +08:00
#version 450
layout(location = 0) in vec3 position;
2024-02-21 13:28:50 +08:00
layout(location = 1) in vec3 color;
layout(location = 0) out vec3 fragColor;
2024-04-03 21:28:08 +08:00
layout(push_constant) uniform Push{
mat4 transform;
2024-04-03 21:28:08 +08:00
vec3 color;
} push;
2024-02-21 13:28:50 +08:00
void main(){
gl_Position = push.transform * vec4(position, 1.0);
fragColor = color;
2024-02-21 13:28:50 +08:00
}