mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-22 06:48:43 -06:00
use core in colored2d shader
This commit is contained in:
parent
582b8bff6d
commit
b8d05d5708
|
@ -7,7 +7,7 @@ pub struct Vertex {
|
||||||
implement_vertex!(Vertex, position);
|
implement_vertex!(Vertex, position);
|
||||||
|
|
||||||
pub const VERTEX_SHADER: &str = r#"
|
pub const VERTEX_SHADER: &str = r#"
|
||||||
#version 140
|
#version 140 core
|
||||||
|
|
||||||
in vec2 position;
|
in vec2 position;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ pub const VERTEX_SHADER: &str = r#"
|
||||||
}
|
}
|
||||||
"#;
|
"#;
|
||||||
pub const FRAGMENT_SHADER: &str = r#"
|
pub const FRAGMENT_SHADER: &str = r#"
|
||||||
#version 140
|
#version 140 core
|
||||||
|
|
||||||
out vec4 color;
|
out vec4 color;
|
||||||
uniform vec4 u_color;
|
uniform vec4 u_color;
|
||||||
|
|
Loading…
Reference in a new issue