Skip to content

Commit

Permalink
Merge pull request #87207 from jsjtxietian/fix-normal_roughness_compa…
Browse files Browse the repository at this point in the history
…tibility

Add missing check when insert function `normal_roughness_compatibility`
  • Loading branch information
akien-mga committed Jan 16, 2024
2 parents 7d17496 + 747ae42 commit 5b19796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/rendering/shader_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ String ShaderCompiler::_dump_node_code(const SL::Node *p_node, int p_level, Gene
if (is_screen_texture && !texture_func_returns_data && actions.apply_luminance_multiplier) {
code = "(" + code + " * vec4(vec3(sc_luminance_multiplier), 1.0))";
}
if (is_normal_roughness_texture) {
if (is_normal_roughness_texture && !texture_func_returns_data) {
code = "normal_roughness_compatibility(" + code + ")";
}
} break;
Expand Down

0 comments on commit 5b19796

Please sign in to comment.