Packet tracing on primary and shadow rays