From c42e5832bfdb39dcb7ab606e0858a08cd1f70f4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=85=B5?= <49358166+xubing0906@users.noreply.github.com> Date: Tue, 24 May 2022 19:16:43 +0800 Subject: [PATCH] roughness limit (#11209) --- editor/assets/effects/dcc/imported-metallic-roughness.effect | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/assets/effects/dcc/imported-metallic-roughness.effect b/editor/assets/effects/dcc/imported-metallic-roughness.effect index a73d37dcc1..84e923ea9e 100644 --- a/editor/assets/effects/dcc/imported-metallic-roughness.effect +++ b/editor/assets/effects/dcc/imported-metallic-roughness.effect @@ -301,7 +301,8 @@ CCProgram standard-fs %{ roughnessValue = roughnessColor.ROUGHNESS_CHANNEL; #endif #endif - s.roughness = roughnessValue; + //fit specular ior=1.5 + s.roughness = max(0.02, roughnessValue); float occlusionValue = occlusion;