public static string ToUnityShaderLabName(this MToon10Prop prop) { return(UnityShaderLabNames[prop]); }
public static Color GetColor(this Material mat, MToon10Prop prop) { return(mat.GetColor(prop.ToUnityShaderLabName())); }
public static float GetFloat(this Material mat, MToon10Prop prop) { return(mat.GetFloat(prop.ToUnityShaderLabName())); }
public static Vector2 GetTextureOffset(this Material mat, MToon10Prop prop) { return(mat.GetTextureOffset(prop.ToUnityShaderLabName())); }
public static Texture GetTexture(this Material mat, MToon10Prop prop) { return(mat.GetTexture(prop.ToUnityShaderLabName())); }
public static void SetInt(this Material mat, MToon10Prop prop, int val) { mat.SetInt(prop.ToUnityShaderLabName(), val); }