Original Post
im trying to optimize my rendering loop and i would like to get some opinions on the best rendering techniques. i havent started space partitioning yet, but im thinking of going with octrees. anyway, im starting to add ahaders and lights into the rendering loop. should i seperate the polygons by texture, by lighting, or by shader? any suggestions? btw im using opengl, c++ and glsl for the shaders