mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-25 16:28:42 -06:00
progressbar shader fix
This commit is contained in:
parent
50ef5c2d1e
commit
7c8a0fb66b
|
@ -1,12 +1,12 @@
|
||||||
#version 150 core
|
#version 150 core
|
||||||
|
|
||||||
in vec2 position;
|
in vec2 position;
|
||||||
out vec2 uv;
|
out vec2 v_uv;
|
||||||
uniform mat4 ui_view;
|
uniform mat4 ui_view;
|
||||||
uniform mat3 transform;
|
uniform mat3 transform;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
uv = position;
|
v_uv = position;
|
||||||
vec2 transformed = (transform * vec3(position, 1.)).xy;
|
vec2 transformed = (transform * vec3(position, 1.)).xy;
|
||||||
gl_Position = ui_view * vec4(transformed, 0., 1.);
|
gl_Position = ui_view * vec4(transformed, 0., 1.);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ pub fn gui_testing(
|
||||||
vec2(0.5, 0.25)
|
vec2(0.5, 0.25)
|
||||||
)),
|
)),
|
||||||
ProgressbarComponent {
|
ProgressbarComponent {
|
||||||
progress: 0.5
|
progress: 0.33
|
||||||
},
|
},
|
||||||
PrimaryColor::default(),
|
PrimaryColor::default(),
|
||||||
SecondaryColor::default(),
|
SecondaryColor::default(),
|
||||||
|
|
Loading…
Reference in a new issue