Skip to content

Commit

Permalink
Made pivot easier to see
Browse files Browse the repository at this point in the history
  • Loading branch information
THDigi committed May 19, 2024
1 parent a92299b commit 29d4b6a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions StatusUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ public void Update()
if(DrawPivot || DrawEmitters || DrawLights)
{
const float LineLength = 1f;
const float LineThick = 0.01f;
const float TextScale = 0.6f;
const float PointRadius = 0.05f;
const MyBillboard.BlendTypeEnum Blend = MyBillboard.BlendTypeEnum.PostPP;
Expand All @@ -258,9 +257,11 @@ public void Update()

if(alpha > 0)
{
MyTransparentGeometry.AddLocalLineBillboard(EditorUI.MaterialLaser, Color.Red * alpha, localMatrix.Translation, parentId, localMatrix.Right, LineLength, LineThick, Blend);
MyTransparentGeometry.AddLocalLineBillboard(EditorUI.MaterialLaser, Color.Lime * alpha, localMatrix.Translation, parentId, localMatrix.Up, LineLength, LineThick, Blend);
MyTransparentGeometry.AddLocalLineBillboard(EditorUI.MaterialLaser, Color.Blue * alpha, localMatrix.Translation, parentId, localMatrix.Backward, LineLength, LineThick, Blend);
float thick = MathHelper.Clamp(distance * 0.0025f, 0.01f, 0.1f);

MyTransparentGeometry.AddLocalLineBillboard(EditorUI.MaterialSquare, Color.Red * alpha, localMatrix.Translation, parentId, localMatrix.Right, LineLength, thick, Blend);
MyTransparentGeometry.AddLocalLineBillboard(EditorUI.MaterialSquare, Color.Lime * alpha, localMatrix.Translation, parentId, localMatrix.Up, LineLength, thick, Blend);
MyTransparentGeometry.AddLocalLineBillboard(EditorUI.MaterialSquare, Color.Blue * alpha, localMatrix.Translation, parentId, localMatrix.Backward, LineLength, thick, Blend);
}

if(DrawEmitters || DrawLights)
Expand Down

0 comments on commit 29d4b6a

Please sign in to comment.