mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-16 07:58:33 +00:00
Some old OS X environments refuse to work with OpenGL 3.0 even though they support later versions.
20 lines
242 B
GLSL
20 lines
242 B
GLSL
#version 150
|
|
|
|
uniform mat4 matrix;
|
|
|
|
in vec2 pos;
|
|
in vec2 uv;
|
|
in vec4 col;
|
|
|
|
out vec2 f_uv;
|
|
out vec4 f_color;
|
|
|
|
// Built-in:
|
|
// vec4 gl_Position
|
|
|
|
void main() {
|
|
f_uv = uv;
|
|
f_color = col / 255.0;
|
|
gl_Position = matrix * vec4(pos.xy, 0, 1);
|
|
}
|