// SPDX-FileCopyrightText: 2023 Unity Technologies and the glTFast authors
// SPDX-License-Identifier: Apache-2.0
using UnityEngine;
namespace GLTFast.Export
{
using Logging;
///
/// Converts a Unity Material into a glTF material
///
public interface IMaterialExport
{
///
/// Converts a Unity material to a glTF material.
///
/// Source material
/// Resulting material
/// Associated IGltfWriter. Is used for adding images and textures.
/// Logger used for reporting
/// True if no errors occured, false otherwise
bool ConvertMaterial(
Material uMaterial,
out Schema.Material material,
IGltfWritable gltf,
ICodeLogger logger
);
}
}