Add missing check when insert function normal_roughness_compatibility
This commit is contained in:
parent
89cc635c05
commit
747ae429de
@ -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) {
|
if (is_screen_texture && !texture_func_returns_data && actions.apply_luminance_multiplier) {
|
||||||
code = "(" + code + " * vec4(vec3(sc_luminance_multiplier), 1.0))";
|
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 + ")";
|
code = "normal_roughness_compatibility(" + code + ")";
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
Loading…
Reference in New Issue
Block a user