static public void Rectangle(Draw.DebugRectangle rectangle) { lock (_rectangles) { _rectangles.Enqueue(rectangle); } }
static void DrawRectangle(Draw.DebugRectangle rectangle) { var m = Matrix4x4.TRS(rectangle.Center.ToUnityVector3(), rectangle.Rotation.ToUnityQuaternion(), rectangle.Size.ToUnityVector3()); Graphics.DrawMesh(QuadMesh, m, GetMaterial(rectangle.Color), 0, null); }