Unity's billboard renderer. Can't make it to work

Hello everyone. I have trees that I want to place in the terrain. As we all know the default imposter system is bad to put it mildly. So I’m trying to use LOD trees with a billboard. I’ve seen Unity provides a Billboard renderer, a billboard asset and a URP shader. All intended to work for SpeedTree. I have custom trees, but I’ve figured I could make it work since the billboard renderer comes with unity. But I’m not having any luck. Can’t make it to show anything at all.

I’m creating the billboard asset like this:

private BillboardAsset createBillBoardAsset(GameObject subject, Material bbm) {
        BillboardAsset result = new BillboardAsset();
        //getObject data
        Bounds b = subject.GetComponent<MeshFilter>().sharedMesh.bounds;
        //create quad mesh
        Vector2[] verts = new Vector2[4];
        verts[0] = new Vector2(0,0);
        verts[1] = new Vector2(1,0);
        verts[2] = new Vector2(1,1);
        verts[3] = new Vector2(0,1);
        result.SetVertices(verts);
        //create quad triangles
        ushort[] tris = new ushort[6];
        tris[0] = 0; tris[1] = 1; tris[2] = 3;
        tris[3] = 2; tris[4] = 3; tris[5] = 1;
        result.SetIndices(tris);
        //set image Positions
        Vector4[] imageCoords = new Vector4[4];
        int x = 0;
        int y = 0;
        for (int i = 0; i < 4; i++)
        {
            imageCoords[i] = new Vector4(0.5f*(float)x, 0.5f*(float)y, 0.5f,0.5f);
            //Prepare next atlas position
            x++;
            if (x > 1) { x = 0; y++; }
        }
        result.SetImageTexCoords(imageCoords);
        //final touches
        result.material = bbm;
        result.width = Mathf.Max(b.max.x - b.min.x, b.max.z - b.min.z);
        result.height = b.max.y - b.min.y;
        result.bottom = 0;
        return result;
    }

And then saving it with AssetDatabase.CreateAsset
The object is set up like so…


But nothing is rendered. For good measure I’ve also tried to do an 8 sided billboard asset like the one in the documentation instead of four. But had no luck. I’ve also played with the triangle indices. But didn’t see anything.

What am I doing wrong? It should work right?

Thanks…

hello, it seems to not working for me too . Trying to use LOD group, but the billboard is just not rendered at all !!