From 656a5292490f36ee33ed921bc9abd23d5a7dc6fe Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 22 Feb 2013 23:05:43 +1300 Subject: [PATCH] Support Vertex objects with custom z coordinate. --- OpenRA.FileFormats/Graphics/Vertex.cs | 7 +++++++ 1 file changed, 7 insertions(+) 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; + } } }