vulkan fixed some shaders

This commit is contained in:
KojoZero 2026-05-22 05:14:11 -07:00
parent bffb027310
commit 9d0befa198
2 changed files with 3 additions and 1 deletions

View file

@ -17,7 +17,8 @@ layout (push_constant, std140) uniform DrawInfo {
};
void main()
{
gl_Position = vec4(mat2(modelview_matrix) * vert_position + modelview_matrix[2], 0.0, 1.0);
vec4 position = vec4(vert_position, 0.0, 1.0) * modelview_matrix;
gl_Position = vec4(position.x, position.y, 0.0, 1.0);
frag_tex_coord = vert_tex_coord;
}

View file

@ -16,6 +16,7 @@ layout (push_constant, std140) uniform DrawInfo {
int screen_id_r;
int layer;
int reverse_interlaced;
int convert_colors;
};
layout (set = 0, binding = 0) uniform sampler2D screen_textures[3];