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