// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema
{
///
/// A texture and its sampler.
/// https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/texture.schema.json
///
[Serializable]
public class GltfTexture : GltfChildOfRootProperty
{
///
/// The index of the sampler used by this texture.
///
public int sampler = -1;
///
/// The index of the image used by this texture.
///
public int source = -1;
///
/// Unity Texture2D wrapper for GltfTexture
///
public Texture2D Texture { get; internal set; }
}
}