roughness limit (#11209)

This commit is contained in:
徐兵
2022-05-24 19:16:43 +08:00
committed by GitHub
parent 07bc88dc1f
commit c42e5832bf
@@ -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;