mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-17 22:05:56 -05:00
render: don't infer luminance multipliers from color TF
Make scene pass them explicitly instead. Ref #3995
This commit is contained in:
parent
68052f34d3
commit
5a40da7e15
6 changed files with 36 additions and 23 deletions
|
|
@ -10,7 +10,6 @@ layout(location = 0) out vec4 out_color;
|
|||
/* struct wlr_vk_frag_output_pcr_data */
|
||||
layout(push_constant, row_major) uniform UBO {
|
||||
layout(offset = 80) mat4 matrix;
|
||||
float luminance_multiplier;
|
||||
float lut_3d_offset;
|
||||
float lut_3d_scale;
|
||||
} data;
|
||||
|
|
@ -71,8 +70,6 @@ void main() {
|
|||
rgb = in_color.rgb / alpha;
|
||||
}
|
||||
|
||||
rgb *= data.luminance_multiplier;
|
||||
|
||||
rgb = mat3(data.matrix) * rgb;
|
||||
|
||||
if (OUTPUT_TRANSFORM != OUTPUT_TRANSFORM_IDENTITY) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue