render/vulkan: add texture color transformation matrix

This commit is contained in:
Simon Ser 2025-02-27 16:57:00 +01:00
parent 56d95c2ecb
commit 3a51a5c623
3 changed files with 10 additions and 7 deletions

View file

@ -816,9 +816,13 @@ static void render_pass_add_texture(struct wlr_render_pass *wlr_pass,
return;
}
float color_matrix[9];
wlr_matrix_identity(color_matrix);
struct wlr_vk_frag_texture_pcr_data frag_pcr_data = {
.alpha = alpha,
};
encode_color_matrix(color_matrix, frag_pcr_data.matrix);
bind_pipeline(pass, pipe->vk);