fix(video): fix leaky abstraction in ogl luma shader (#4404)

This commit is contained in:
ns6089 2025-11-08 21:48:49 +03:00 committed by GitHub
commit 49197c71af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,7 @@ layout(location = 0) out float color;
void main()
{
vec3 rgb = texture(image, tex).rgb;
float y = dot(color_vec_y.xyz, rgb);
float y = dot(color_vec_y.xyz, rgb) + color_vec_y.w;
color = y * range_y.x + range_y.y;
}