was mixing real geometry normal, smoothed geometry normal and bump-mapped normal. Use `(sd->type & PRIMITIVE_CURVE) ? sc->N : sd->Ng` consistently instead.