std pipe multiple lights and rendering-pass code cleanup