Files
sophia/engine/src/shaders/model_render_system.vert
T
2026-09-30 18:53:16 -07:00

18 lines
370 B
GLSL

#version 450
// Per vertex; locations match Mesh::getAttributeDescriptions().
layout (location = 0) in vec3 position;
layout (location = 3) in vec4 color;
layout (location = 0) out vec4 fragColor;
layout (push_constant) uniform Push {
mat4 transform;
vec4 color;
} push;
void main() {
gl_Position = push.transform * vec4(position, 1.0);
fragColor = color;
}