소스 검색

Merge pull request #87207 from jsjtxietian/fix-normal_roughness_compatibility

Add missing check when insert function `normal_roughness_compatibility`
Rémi Verschelde 1 년 전
부모
커밋
5b19796a2b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      servers/rendering/shader_compiler.cpp

+ 1 - 1
servers/rendering/shader_compiler.cpp

@@ -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;