rewrote everything so that angle is built into tau for each ray