Missing "track->hasShadows" check