holopy3/Assets/PlattarExporter/UnityGLTF/Scripts/Cache/MaterialCacheData.cs

15 lines
406 B
C#
Raw Permalink Normal View History

2021-01-28 12:07:52 +00:00
namespace UnityGLTF.Cache
{
public class MaterialCacheData
{
public UnityEngine.Material UnityMaterial { get; set; }
public UnityEngine.Material UnityMaterialWithVertexColor { get; set; }
public GLTF.Schema.Material GLTFMaterial { get; set; }
public UnityEngine.Material GetContents(bool useVertexColors)
{
return useVertexColors ? UnityMaterialWithVertexColor : UnityMaterial;
}
}
}