mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-23 20:38:21 -06:00
progressbar shader fix
This commit is contained in:
parent
fdb7cf80e7
commit
c9cfa478d3
|
@ -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