using GlitchyEngine.Core;
namespace GlitchyEngine.Graphics;
///
/// Renders a Mesh. The Mesh can be specified by adding a component to the same .
///
public class MeshRenderer : Component
{
///
/// Gets or sets the Material of this .
///
public Material Material
{
get
{
ScriptGlue.MeshRenderer_GetMaterial(_uuid, out UUID materialHandle);
return new Material { _uuid = materialHandle };
}
set => ScriptGlue.MeshRenderer_SetMaterial(_uuid, value._uuid);
}
}