Esempio n. 1
0
    /// <summary>
    /// Returns the vertices of the circles used for the full res visualization
    /// </summary>
    /// <returns></returns>
    private Vector3[] fullResCircleVerts()
    {
        List <Vector3> outVerts  = new List <Vector3>();
        int            circleNum = Mathf.CeilToInt(fullDepth / (float)reducedDepth);

        for (int i = 0; i < circleNum; i++)
        {
            CircleShape circle = new CircleShape(CenterPosition(), reducedDepth, filterSpread * 1.3f + i * 2.0f * (filterSpread / 10.0f));
            outVerts.AddRange(circle.GetVertices(false));
        }


        return(outVerts.ToArray());
    }