Fix 90 degree rotation error in Image2D
This commit is contained in:
parent
9105b16df8
commit
7cb47c721b
@ -1050,20 +1050,20 @@ namespace Quik.VertexGenerator
|
||||
DrawQueue.RestoreOffset();
|
||||
QuikVertex vertex = ImageVertex;
|
||||
|
||||
vertex.Position = new QVec2(rect.Top, rect.Left);
|
||||
vertex.TextureCoordinates = new QVec2(uvs.Top, uvs.Left);
|
||||
vertex.Position = new QVec2(rect.Left, rect.Top);
|
||||
vertex.TextureCoordinates = new QVec2(uvs.Left, uvs.Top);
|
||||
DrawQueue.AddVertex(vertex);
|
||||
|
||||
vertex.Position = new QVec2(rect.Bottom, rect.Left);
|
||||
vertex.TextureCoordinates = new QVec2(uvs.Bottom, uvs.Left);
|
||||
vertex.Position = new QVec2(rect.Left, rect.Bottom);
|
||||
vertex.TextureCoordinates = new QVec2(uvs.Left, uvs.Bottom);
|
||||
DrawQueue.AddVertex(vertex);
|
||||
|
||||
vertex.Position = new QVec2(rect.Bottom, rect.Right);
|
||||
vertex.TextureCoordinates = new QVec2(uvs.Bottom, uvs.Right);
|
||||
vertex.Position = new QVec2(rect.Right, rect.Bottom);
|
||||
vertex.TextureCoordinates = new QVec2(uvs.Right, uvs.Bottom);
|
||||
DrawQueue.AddVertex(vertex);
|
||||
|
||||
vertex.Position = new QVec2(rect.Top, rect.Right);
|
||||
vertex.TextureCoordinates = new QVec2(uvs.Top, uvs.Right);
|
||||
vertex.Position = new QVec2(rect.Right, rect.Top);
|
||||
vertex.TextureCoordinates = new QVec2(uvs.Right, uvs.Right);
|
||||
DrawQueue.AddVertex(vertex);
|
||||
|
||||
DrawQueue.AddElement(0); DrawQueue.AddElement(2); DrawQueue.AddElement(3);
|
||||
|
Loading…
Reference in New Issue
Block a user