Files
Cheap-Vulkan-Renderer/shaders/simple_shader.vert

14 lines
237 B
GLSL

#version 450
layout(location = 0) in vec2 position;
layout(location = 1) in vec3 color;
layout(push_constant) uniform Push {
vec2 offset;
vec3 color;
} push;
void main() {
gl_Position = vec4(position + push.offset, 0.0, 1.0);
}