Skip to content

Commit

Permalink
[Image Editor] - Fixed bug in cube map renderer where face names did …
Browse files Browse the repository at this point in the history
…not show up in the correct spot.
  • Loading branch information
Tape-Worm committed May 3, 2022
1 parent dd6d5cc commit 641a415
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,15 @@ protected override void DrawTexture()

var bottomLeft = new Vector2(_cubeScreenBounds[0].BottomLeft.X, _cubeScreenBounds[0].BottomLeft.Y);
Renderer.DrawString("+X", bottomLeft - offset, _axisFont, new GorgonColor(GorgonColor.White, Opacity));
bottomLeft = new Vector2(_cubeScreenBounds[1].BottomLeft.X, _cubeScreenBounds[0].BottomLeft.Y);
bottomLeft = new Vector2(_cubeScreenBounds[1].BottomLeft.X, _cubeScreenBounds[1].BottomLeft.Y);
Renderer.DrawString("-X", bottomLeft - offset, _axisFont, new GorgonColor(GorgonColor.White, Opacity));
bottomLeft = new Vector2(_cubeScreenBounds[2].BottomLeft.X, _cubeScreenBounds[0].BottomLeft.Y);
bottomLeft = new Vector2(_cubeScreenBounds[2].BottomLeft.X, _cubeScreenBounds[2].BottomLeft.Y);
Renderer.DrawString("+Y", bottomLeft - offset, _axisFont, new GorgonColor(GorgonColor.White, Opacity));
bottomLeft = new Vector2(_cubeScreenBounds[3].BottomLeft.X, _cubeScreenBounds[0].BottomLeft.Y);
bottomLeft = new Vector2(_cubeScreenBounds[3].BottomLeft.X, _cubeScreenBounds[3].BottomLeft.Y);
Renderer.DrawString("-Y", bottomLeft - offset, _axisFont, new GorgonColor(GorgonColor.White, Opacity));
bottomLeft = new Vector2(_cubeScreenBounds[4].BottomLeft.X, _cubeScreenBounds[0].BottomLeft.Y);
bottomLeft = new Vector2(_cubeScreenBounds[4].BottomLeft.X, _cubeScreenBounds[4].BottomLeft.Y);
Renderer.DrawString("+Z", bottomLeft - offset, _axisFont, new GorgonColor(GorgonColor.White, Opacity));
bottomLeft = new Vector2(_cubeScreenBounds[5].BottomLeft.X, _cubeScreenBounds[0].BottomLeft.Y);
bottomLeft = new Vector2(_cubeScreenBounds[5].BottomLeft.X, _cubeScreenBounds[5].BottomLeft.Y);
Renderer.DrawString("-Z", bottomLeft - offset, _axisFont, new GorgonColor(GorgonColor.White, Opacity));

Renderer.End();
Expand Down

0 comments on commit 641a415

Please sign in to comment.