The leaf UVs now converge at the tip, so the vein texture follows the leaf shape instead of being cut off at the edges.
UVs are projected on a straight strip; a scale ramp then narrows the strip toward the tip, so the UV columns taper with the geometry.
vector mn = getbbox_min(0), mx = getbbox_max(0);
float t = fit(@P.y, mn.y, mx.y, 0, 1);
float s = chramp("scale_profile", t);
float cx = (mn.x + mx.x) * 0.5, cz = (mn.z + mx.z) * 0.5;
@P.x = cx + (@P.x - cx) * s;
@P.z = cz + (@P.z - cz) * s;


