write out intermediates and some more params
Rendering using uniform buffer objects for all parameters except lit objects + particle system.