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