diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-13 10:10:48 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-13 10:10:48 +0100 |
commit | 488793fd2658ee1f4da5f216a3628d70c81d60db (patch) | |
tree | 1beb0aeac3f22147cddf3909a6e128e34bd2c393 | |
parent | a390a494146b7fcfa2af5d3069226aa78e5db6ac (diff) | |
parent | c53c687962b0ea4333acbaacb504539285275e90 (diff) |
Merge pull request #69982 from bruce965/fix-screen-texture-luminance
Fix screen texture slightly darker
-rw-r--r-- | servers/rendering/shader_compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/shader_compiler.cpp b/servers/rendering/shader_compiler.cpp index 7ccf3af6eb..3604756fd8 100644 --- a/servers/rendering/shader_compiler.cpp +++ b/servers/rendering/shader_compiler.cpp @@ -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: { |