mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
roughness limit (#11209)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user