use core in colored2d shader

This commit is contained in:
griffi-gh 2023-01-16 16:27:54 +01:00
parent 582b8bff6d
commit b8d05d5708

View file

@ -7,7 +7,7 @@ pub struct Vertex {
implement_vertex!(Vertex, position);
pub const VERTEX_SHADER: &str = r#"
#version 140
#version 140 core
in vec2 position;
@ -16,7 +16,7 @@ pub const VERTEX_SHADER: &str = r#"
}
"#;
pub const FRAGMENT_SHADER: &str = r#"
#version 140
#version 140 core
out vec4 color;
uniform vec4 u_color;