USING THE MEGATK SHADER TO OUTPUT MULTIPLE PASSES IN 1 RENDER
This is a fantastic universal shader that allows you to shade multiple attributes then output passes through a buffer writer. You have to assign the shader to all objects needed for passes, then assign a light shader to your lights and finally write out a buffer on a dummy object.
The full documentation and tutorials are here...
p.s. Why didn't they implement output passes for the new mia shader!!! There is a mia_wrapper out there but you still have to hook it all through the ctrl.buffer shader. Fix render layers Autodesk!!!