holopy3/Assets/PlattarExporter/UnityGLTF/Scripts/Cache/MaterialCacheData.cs
Lena Biresch 490ef558ef CleanUp
2021-01-28 13:07:52 +01:00

14 lines
406 B
C#

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;
}
}
}