vktutorial/shaders/simple_shader.vert

15 lines
278 B
GLSL
Raw Normal View History

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