Trace material ID

It remembers them, but Trace’s HitInfo ignores instances for some reason and just outputs default materials. If it worked correctly, I could make a workaround with ScalarParameters telling which instance is which.