mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-26 01:40:35 -05:00
render/vulkan: add texture color transformation matrix
This commit is contained in:
parent
56d95c2ecb
commit
3a51a5c623
3 changed files with 10 additions and 7 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue