From 1034b46b27acceb8499e70c12132101f35c856bd Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Sun, 27 Oct 2024 14:17:17 +0100 Subject: [PATCH] :beetle: Fix color conversion for ICC profiles on Plasma 6 --- resources/shaders/common.glsl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/shaders/common.glsl b/resources/shaders/common.glsl index fea8ede..579518b 100644 --- a/resources/shaders/common.glsl +++ b/resources/shaders/common.glsl @@ -42,6 +42,8 @@ uniform float uDuration; #if defined(KWIN) // -------------------------------------------------------------------- +#include "colormanagement.glsl" + uniform sampler2D sampler; uniform int textureWidth; uniform int textureHeight; @@ -74,6 +76,8 @@ void setOutputColor(vec4 outColor) { } fragColor = vec4(outColor.rgb * outColor.a, outColor.a); + fragColor = sourceEncodingToNitsInDestinationColorspace(fragColor); + fragColor = nitsToDestinationEncoding(fragColor); } #elif defined(KWIN_LEGACY) // -----------------------------------------------------------