Merge pull request #69982 from bruce965/fix-screen-texture-luminance

Fix screen texture slightly darker
This commit is contained in:
Rémi Verschelde 2022-12-13 10:10:48 +01:00
commit 488793fd26
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1287,7 +1287,7 @@ String ShaderCompiler::_dump_node_code(const SL::Node *p_node, int p_level, Gene
}
code += ")";
if (is_screen_texture && actions.apply_luminance_multiplier) {
code = "(" + code + " / vec4(vec3(sc_luminance_multiplier), 1.0))";
code = "(" + code + " * vec4(vec3(sc_luminance_multiplier), 1.0))";
}
} break;
case SL::OP_INDEX: {