2020-12-07 09:30:09 +00:00
|
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
|
|
|
|
namespace Kav
|
|
|
|
{
|
|
|
|
public static class VertexDeclarations
|
|
|
|
{
|
2020-12-08 10:49:18 +00:00
|
|
|
public static VertexDeclaration PositionInstanceDeclaration = new VertexDeclaration
|
2020-12-07 09:30:09 +00:00
|
|
|
(
|
2020-12-08 10:49:18 +00:00
|
|
|
new VertexElement(0, VertexElementFormat.Vector3, VertexElementUsage.TextureCoordinate, 2)
|
2020-12-07 09:30:09 +00:00
|
|
|
);
|
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
|
|
|
);
|
2020-12-07 09:30:09 +00:00
|
|
|
}
|
|
|
|
}
|