示例#1
0
        public static void ApplyFiltersToMainTexture(this Material material, params HsvColorFilter[] filters)
        {
            Texture2D mainTexture   = (Texture2D)material.mainTexture;
            Texture2D clonedTexture = mainTexture.Clone();

            material.mainTexture = clonedTexture;
            clonedTexture.ApplyFilters(filters);
        }