Shader Dataflow

Here we can see the dataflow for all the types of information processed in a graphics application as it goes through both shaders. The application will write attributes and uniforms which are passed through to the vertex shader. The uniforms can also be passed to the fragment shader for use in processing. The vertex shader will then output a vertex position and various varyings. The fragment shader then takes these output varyings, as well as some hardware-interpolated values in order to determine the final output fragment colour.