2020-12-07 21:50:32 +00:00
|
|
|
using System.Runtime.InteropServices;
|
2020-12-07 09:30:09 +00:00
|
|
|
using Microsoft.Xna.Framework;
|
|
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
|
|
|
|
namespace Kav
|
|
|
|
{
|
2020-12-07 21:50:32 +00:00
|
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
2020-12-07 09:30:09 +00:00
|
|
|
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
|
2020-12-07 09:30:09 +00:00
|
|
|
) {
|
|
|
|
World = world;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|