diff --git a/OpenRA.FileFormats/Graphics/Vertex.cs b/OpenRA.FileFormats/Graphics/Vertex.cs index 70fe13f4df..d0f0815554 100644 --- a/OpenRA.FileFormats/Graphics/Vertex.cs +++ b/OpenRA.FileFormats/Graphics/Vertex.cs @@ -24,5 +24,12 @@ namespace OpenRA.FileFormats.Graphics this.u = uv.X; this.v = uv.Y; this.p = pc.X; this.c = pc.Y; } + + public Vertex(float[] xyz, float2 uv, float2 pc) + { + this.x = xyz[0]; this.y = xyz[1]; this.z = xyz[2]; + this.u = uv.X; this.v = uv.Y; + this.p = pc.X; this.c = pc.Y; + } } }