I've been learning a lot about OpenGL lately, specially with the http://learnopengl.com website and other similar websites. However, i'm still trying to understand how different shaders and techniques can come up together to create a rendering pipeline. How can i mix different shadowing and lighting techniques? How does that affect my normaç/specular/diffuse shaders? Should i create a single, big shader, with many variables... or small shaders with specific purposes? If small, how do i make them communicate with each other?
I went to the bgfx github page and went through the examples, but they are very confusing with lot's of global code laying around. Do you guys recommend any good examples of rendering pipelines being setup?