summaryrefslogtreecommitdiff
path: root/src/render/shaders/glsl/blurprepare.frag
diff options
context:
space:
mode:
authorDominick DiMaggio <ddimaggio324@gmail.com>2025-12-07 12:58:49 -0500
committerGitHub <noreply@github.com>2025-12-07 17:58:49 +0000
commit532ca053d6d7ca4afd0b7980b91fcb5bb09da552 (patch)
treefe5c4681b19857131042c9b396071f9fe254f812 /src/render/shaders/glsl/blurprepare.frag
parentca99e8228cd3b2fa062d74f16c0531f217d722b2 (diff)
renderer/cm: higher-quality tonemapping (#12204)
Diffstat (limited to 'src/render/shaders/glsl/blurprepare.frag')
-rw-r--r--src/render/shaders/glsl/blurprepare.frag2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/shaders/glsl/blurprepare.frag b/src/render/shaders/glsl/blurprepare.frag
index 548289c3..6b9809f8 100644
--- a/src/render/shaders/glsl/blurprepare.frag
+++ b/src/render/shaders/glsl/blurprepare.frag
@@ -28,7 +28,7 @@ void main() {
pixColor.rgb /= sdrBrightnessMultiplier;
}
pixColor.rgb = convertMatrix * toLinearRGB(pixColor.rgb, sourceTF);
- pixColor = toNit(pixColor, srcTFRange);
+ pixColor = toNit(pixColor, vec2(srcTFRange[0], srcRefLuminance));
pixColor = fromLinearNit(pixColor, targetTF, dstTFRange);
}