aboutsummaryrefslogtreecommitdiff
path: root/src/shader/vertex.glsl
blob: 4c307d88bdffbca509b97630aaf0fe042efb6719 (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 = vec4(1., 0., 0., 0.);
}
)";