public void AdjustNonTextureProperties(Material resultMat,
                                                   List <ShaderTextureProperty> texPropertyNames,
                                                   List <MaterialPropTexturesSet> distinctMaterialTextures,
                                                   EditorMethodsInterface editorMethods)
            {
                Debug.Assert(_textureProperties._considerNonTextureProperties == false);
                if (resultMat == null || texPropertyNames == null)
                {
                    return;
                }
                for (int nonTexPropIdx = 0; nonTexPropIdx < _textureProperties._nonTextureProperties.Length; nonTexPropIdx++)
                {
                    MaterialProperty nonTexProperty = _textureProperties._nonTextureProperties[nonTexPropIdx];
                    if (resultMat.HasProperty(nonTexProperty.PropertyName))
                    {
                        nonTexProperty.GetAverageCalculator().SetAverageValueOrDefaultOnMaterial(resultMat, nonTexProperty);
                    }
                }

                if (editorMethods != null)
                {
                    editorMethods.CommitChangesToAssets();
                }
            }