added general ray origin