@@ -894,10 +894,31 @@ protected void FluentOptions(MaterialEditor materialEditor, Material material)
894894 }
895895 }
896896 }
897+
898+ if ( ! PropertyEnabled ( roundCorners ) && PropertyEnabled ( borderLight ) )
899+ {
900+ materialEditor . ShaderProperty ( edgeSmoothingMode , Styles . edgeSmoothingMode , 2 ) ;
901+
902+ switch ( ( EdgeSmoothingMode ) edgeSmoothingMode . floatValue )
903+ {
904+ default :
905+ case EdgeSmoothingMode . Manual :
906+ {
907+ material . DisableKeyword ( Styles . edgeSmoothingModeAutomaticName ) ;
908+ materialEditor . ShaderProperty ( edgeSmoothingValue , Styles . edgeSmoothingValue , 3 ) ;
909+ }
910+ break ;
911+ case EdgeSmoothingMode . Automatic :
912+ {
913+ material . EnableKeyword ( Styles . edgeSmoothingModeAutomaticName ) ;
914+ }
915+ break ;
916+ }
917+ }
897918
898919 if ( PropertyEnabled ( hoverLight ) || PropertyEnabled ( proximityLight ) || PropertyEnabled ( borderLight ) )
899920 {
900- materialEditor . ShaderProperty ( fluentLightIntensity , Styles . fluentLightIntensity ) ;
921+ materialEditor . ShaderProperty ( fluentLightIntensity , Styles . fluentLightIntensity , 2 ) ;
901922 }
902923
903924 materialEditor . ShaderProperty ( roundCorners , Styles . roundCorners ) ;
@@ -944,17 +965,17 @@ protected void FluentOptions(MaterialEditor materialEditor, Material material)
944965 }
945966 }
946967
947- if ( PropertyEnabled ( roundCorners ) || PropertyEnabled ( borderLight ) )
968+ if ( PropertyEnabled ( roundCorners ) )
948969 {
949- materialEditor . ShaderProperty ( edgeSmoothingMode , Styles . edgeSmoothingMode ) ;
970+ materialEditor . ShaderProperty ( edgeSmoothingMode , Styles . edgeSmoothingMode , 2 ) ;
950971
951972 switch ( ( EdgeSmoothingMode ) edgeSmoothingMode . floatValue )
952973 {
953974 default :
954975 case EdgeSmoothingMode . Manual :
955976 {
956977 material . DisableKeyword ( Styles . edgeSmoothingModeAutomaticName ) ;
957- materialEditor . ShaderProperty ( edgeSmoothingValue , Styles . edgeSmoothingValue , 2 ) ;
978+ materialEditor . ShaderProperty ( edgeSmoothingValue , Styles . edgeSmoothingValue , 3 ) ;
958979 }
959980 break ;
960981 case EdgeSmoothingMode . Automatic :
0 commit comments