@@ -375,6 +375,13 @@ void DrawSurfaceInputsGUI()
375
375
376
376
materialEditor . TexturePropertySingleLine ( Styles . baseColorText , baseColorMap [ m_LayerIndex ] , baseColor [ m_LayerIndex ] ) ;
377
377
378
+ if ( baseColorMap [ m_LayerIndex ] . textureValue != null && materials . All ( m => m . GetSurfaceType ( ) == SurfaceType . Transparent ) )
379
+ {
380
+ materialEditor . MinMaxShaderProperty ( alphaRemapMin [ m_LayerIndex ] , alphaRemapMax [ m_LayerIndex ] , 0.0f , 1.0f , Styles . transparencyRemappingText ) ;
381
+ }
382
+
383
+ materialEditor . TexturePropertySingleLine ( ( materials . All ( m => m . GetMaterialId ( ) == MaterialId . LitSpecular ) ) ? Styles . maskMapSpecularText : Styles . maskMapSText , maskMap [ m_LayerIndex ] ) ;
384
+
378
385
bool hasMetallic = materials . All ( m =>
379
386
m . GetMaterialId ( ) == MaterialId . LitStandard ||
380
387
m . GetMaterialId ( ) == MaterialId . LitAniso ||
@@ -395,13 +402,6 @@ void DrawSurfaceInputsGUI()
395
402
materialEditor . MinMaxShaderProperty ( aoRemapMin [ m_LayerIndex ] , aoRemapMax [ m_LayerIndex ] , 0.0f , 1.0f , Styles . aoRemappingText ) ;
396
403
}
397
404
398
- if ( baseColorMap [ m_LayerIndex ] . textureValue != null && materials . All ( m => m . GetSurfaceType ( ) == SurfaceType . Transparent ) )
399
- {
400
- materialEditor . MinMaxShaderProperty ( alphaRemapMin [ m_LayerIndex ] , alphaRemapMax [ m_LayerIndex ] , 0.0f , 1.0f , Styles . transparencyRemappingText ) ;
401
- }
402
-
403
- materialEditor . TexturePropertySingleLine ( ( materials . All ( m => m . GetMaterialId ( ) == MaterialId . LitSpecular ) ) ? Styles . maskMapSpecularText : Styles . maskMapSText , maskMap [ m_LayerIndex ] ) ;
404
-
405
405
materialEditor . ShaderProperty ( normalMapSpace [ m_LayerIndex ] , Styles . normalMapSpaceText ) ;
406
406
407
407
// Triplanar only work with tangent space normal
0 commit comments