Fixed UI shader

Former-commit-id: 12851d800a5435d25573e1deadb10b8103d40ac7
This commit is contained in:
Joshua Barretto 2019-05-14 08:16:04 +01:00 committed by Imbris
parent 7fd3854093
commit 8c4c14f749

View File

@ -26,7 +26,8 @@ void main() {
// In-game element
gl_Position =
proj_mat *
(view_mat * w_pos + vec4(v_pos, 0.0, 0.0));
view_mat *
(w_pos + vec4(v_pos, 40.0, 1.0));
} else {
// Interface element
gl_Position = vec4(v_pos, 0.0, 1.0);