// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema
{
///
/// A set of primitives to be rendered. A node can contain one or more meshes.
/// A node's transform places the mesh in the scene.
/// https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/mesh.schema.json
///
[Serializable]
public class GltfMesh : GltfChildOfRootProperty
{
///
/// An array of primitives, each defining geometry to be rendered with
/// a material.
/// 1
///
public GltfMeshPrimitive[] primitives;
///
/// Array of weights to be applied to the Morph Targets.
/// 0
///
public double[] weights;
///
/// Unity Mesh wrapper for the GltfMesh
///
public Mesh Mesh { get; internal set; }
}
}