Kav/VertexDeclarations.cs

19 lines
655 B
C#
Raw Normal View History

using Microsoft.Xna.Framework.Graphics;
namespace Kav
{
public static class VertexDeclarations
{
public static VertexDeclaration PositionInstanceDeclaration = new VertexDeclaration
(
new VertexElement(0, VertexElementFormat.Vector3, VertexElementUsage.TextureCoordinate, 2)
);
2020-12-09 06:20:54 +00:00
public static VertexDeclaration PositionTextureOffsetInstanceDeclaration = new VertexDeclaration
(
new VertexElement(0, VertexElementFormat.Vector3, VertexElementUsage.TextureCoordinate, 2),
2020-12-11 00:02:13 +00:00
new VertexElement(12, VertexElementFormat.Vector4, VertexElementUsage.Tangent, 0)
2020-12-09 06:20:54 +00:00
);
}
}