Merge pull request #69982 from bruce965/fix-screen-texture-luminance
Fix screen texture slightly darker
This commit is contained in:
commit
488793fd26
1 changed files with 1 additions and 1 deletions
|
@ -1287,7 +1287,7 @@ String ShaderCompiler::_dump_node_code(const SL::Node *p_node, int p_level, Gene
|
||||||
}
|
}
|
||||||
code += ")";
|
code += ")";
|
||||||
if (is_screen_texture && actions.apply_luminance_multiplier) {
|
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;
|
} break;
|
||||||
case SL::OP_INDEX: {
|
case SL::OP_INDEX: {
|
||||||
|
|
Loading…
Reference in a new issue