Kav/Vertices/GBufferInstanceVertex.cs

29 lines
661 B
C#
Raw Normal View History

2020-12-07 21:50:32 +00:00
using System.Runtime.InteropServices;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Kav
{
2020-12-07 21:50:32 +00:00
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct GBufferInstanceVertex : IVertexType
{
VertexDeclaration IVertexType.VertexDeclaration
{
get
{
return VertexDeclarations.GBufferInstanceDeclaration;
}
}
public Matrix World { get; set; }
public static readonly VertexDeclaration VertexDeclaration;
public GBufferInstanceVertex(
2020-12-07 21:50:32 +00:00
Matrix world
) {
World = world;
}
}
}