UnityEditor.BabylonShaderInterface.GetSmoothnessMapChannel C# (CSharp) Method

GetSmoothnessMapChannel() static private method

static private GetSmoothnessMapChannel ( Material material ) : SmoothnessMapChannel
material UnityEngine.Material
return SmoothnessMapChannel
		static SmoothnessMapChannel GetSmoothnessMapChannel(Material material)
		{
			int ch = (int) material.GetFloat("_SmoothnessTextureChannel");
			if (ch == (int) SmoothnessMapChannel.AlbedoAlpha)
				return SmoothnessMapChannel.AlbedoAlpha;
			else
				return SmoothnessMapChannel.SpecularMetallicAlpha;
		}