Capturing mental ray rays

I made a mental ray shader and small utility program to capture and display rays during rendering. It’s just a proof of concept (and a proof that I can still code, if I need to…). The shader operates as environment shader, so it sees all fired rays. It uses a named pipe to send ray data. [...]