static void UV0_AsColorRGBADarken(PaintJob j, int idx, ref object v, float r)
{
var st = j.stream;
float h, s, b;
Vector4 vec = st.uv0[idx];
Color c = new Color(vec.x, vec.y, vec.z);
Color.RGBToHSV(c, out h, out s, out b);
b = Mathf.Lerp(b, 0.0f, r);
c = Color.HSVToRGB(h, s, b);
st.uv0[idx] = new Vector4(c.r, c.g, c.b, vec.w);
}