normalizing the viewray