GLShader: Use floating point values to interact with vectors

Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
This commit is contained in:
Aleix Pol Gonzalez 2023-11-08 16:44:39 +01:00 committed by Aleix Pol
parent 7b64433830
commit 6cac17aac0

View file

@ -228,7 +228,7 @@ QByteArray ShaderManager::generateFragmentSource(ShaderTraits traits) const
stream << " result.rgb = pqToNits(result.rgb);\n"; stream << " result.rgb = pqToNits(result.rgb);\n";
stream << " result.rgb *= result.a;\n"; stream << " result.rgb *= result.a;\n";
stream << " } else if (sourceNamedTransferFunction == scRGB_EOTF) {\n"; stream << " } else if (sourceNamedTransferFunction == scRGB_EOTF) {\n";
stream << " result.rgb *= 80;\n"; stream << " result.rgb *= 80.0;\n";
stream << " }\n"; stream << " }\n";
stream << " result.rgb = doTonemapping(colorimetryTransform * result.rgb, maxHdrBrightness);\n"; stream << " result.rgb = doTonemapping(colorimetryTransform * result.rgb, maxHdrBrightness);\n";
} }