Files
2025-11-30 08:35:03 +02:00

23 lines
771 B
C#

// SPDX-FileCopyrightText: 2024 Unity Technologies and the glTFast authors
// SPDX-License-Identifier: Apache-2.0
using System;
namespace GLTFast
{
/// <summary>
/// Represents a material slot.
/// </summary>
public interface IMaterialsVariantsSlot
{
/// <summary>
/// Provides the glTF material index, given a materials variant index.
/// If variantIndex is invalid (e.g. negative) or the slot does not have a material override for the given
/// variantIndex, it returns the default material index.
/// </summary>
/// <param name="variantIndex">Materials variant index.</param>
/// <returns>Corresponding glTF material index.</returns>
int GetMaterialIndex(int variantIndex);
}
}