send number of bones to vertex program instead of boolean