aboutsummaryrefslogtreecommitdiff
path: root/src/shader/code/vertex.glsl
blob: 0eccad4cc1ea7b91e004be18a7623cadeae755e6 (plain)
1
2
3
4
5
6
7
8
static const std::string VERTEX_SHADER_CODE = R"(
uniform mat4 MVP;

void main() {
	gl_Position = MVP * vec4(gl_Vertex.xy, 0.0, 1.0);
	gl_FrontColor = gl_Vertex.z * vec4(1., 0., 0., 0.);
}
)";