aboutsummaryrefslogtreecommitdiff
path: root/src/shader/vertex.glsl
blob: 8ab6ccb34fa2ec6b339497a3287eaab48e645379 (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(max(1. - gl_Vertex.z/5., 0.1), 0., 0., 0.);
}
)";