Add a secondary texture coordinate to Vertex.
This commit is contained in:
@@ -95,12 +95,12 @@ namespace OpenRA.Graphics
|
||||
var channelC = ChannelSelect[(int)s.Channel + 1];
|
||||
return new Vertex[6]
|
||||
{
|
||||
new Vertex(coord(0, 0), s.Left, s.Top, channelP, channelC),
|
||||
new Vertex(coord(su, 0), s.Right, s.Top, channelP, channelC),
|
||||
new Vertex(coord(su, sv), s.Right, s.Bottom, channelP, channelC),
|
||||
new Vertex(coord(su, sv), s.Right, s.Bottom, channelP, channelC),
|
||||
new Vertex(coord(0, sv), s.Left, s.Bottom, channelP, channelC),
|
||||
new Vertex(coord(0, 0), s.Left, s.Top, channelP, channelC)
|
||||
new Vertex(coord(0, 0), s.Left, s.Top, 0, 0, channelP, channelC),
|
||||
new Vertex(coord(su, 0), s.Right, s.Top, 0, 0, channelP, channelC),
|
||||
new Vertex(coord(su, sv), s.Right, s.Bottom, 0, 0, channelP, channelC),
|
||||
new Vertex(coord(su, sv), s.Right, s.Bottom, 0, 0, channelP, channelC),
|
||||
new Vertex(coord(0, sv), s.Left, s.Bottom, 0, 0, channelP, channelC),
|
||||
new Vertex(coord(0, 0), s.Left, s.Top, 0, 0, channelP, channelC)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user