Fix screen texture slightly darker

This commit is contained in:
Fabio Iotti 2022-12-12 21:17:36 +01:00 committed by GitHub
parent ba4bd7f009
commit c53c687962
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: {