mixedreality/com.microsoft.mixedreality..../Core/Utilities/Gltf/Schema/GltfMaterialCommonConstant.cs

29 lines
919 B
C#

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
namespace Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema
{
[Serializable]
public class GltfMaterialCommonConstant : GltfProperty
{
// Note: GltfMaterialCommonConstants aren't currently used but exist for deserializing jsons.
// These values would influence properties in Unity -> Window -> Rendering -> Light Settings if used.
/// <summary>
/// Used to scale the ambient light contributions to this material
/// </summary>
public float[] ambientFactor;
/// <summary>
/// Texture used to store pre-computed direct lighting
/// </summary>
public GltfNormalTextureInfo lightmapTexture;
/// <summary>
/// Scale factor for the lightmap texture
/// </summary>
public float[] lightmapFactor;
}
}