Skip to content

Commit

Permalink
fix gizmos rendering with an incorrect projection matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
popcron committed Dec 31, 2020
1 parent 41dfa17 commit ba90e76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Runtime/GizmosInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ private void OnRendered(Camera camera)
Vector3 offset = Gizmos.Offset;

GL.PushMatrix();
GL.MultMatrix(Matrix4x4.identity);
GL.Begin(GL.LINES);

bool alt = CurrentTime % 1 > 0.5f;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.popcron.gizmos",
"displayName": "Popcron Gizmos",
"version": "1.6.6",
"version": "1.6.7",
"unity": "2018.3",
"description": "Quick GL drawing utility for debugging."
}

0 comments on commit ba90e76

Please sign in to comment.