Exemplo n.º 1
0
    private void drawGrid()
    {
        if (Grid == null)
        {
            return;
        }

        GL.PushMatrix();
        GL.MultMatrix(transform.localToWorldMatrix);

        GridMaterial.SetPass(0);
        GridUtils.DrawGridLines(Grid.GridLines);
        GL.PopMatrix();
    }