progressbar shader fix

This commit is contained in:
griffi-gh 2023-02-10 00:08:32 +01:00
parent 50ef5c2d1e
commit 7c8a0fb66b
2 changed files with 3 additions and 3 deletions

View file

@ -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.);
}

View file

@ -53,7 +53,7 @@ pub fn gui_testing(
vec2(0.5, 0.25)
)),
ProgressbarComponent {
progress: 0.5
progress: 0.33
},
PrimaryColor::default(),
SecondaryColor::default(),