Shaders Preamble

Now that all the concepts in 3D graphics have been explained, we’ll round it out with a quick introduction to shaders themselves. They’ve been mentioned a bit previously, so here we’ll explain what exactly they are.

In short, shaders are the programs that run on the GPU and perform the various calculations and processing we need in order to manipulate data and produce a screen-visible output. Their inputs can range from anything from vertex data from application memory, to textures stored on device memory.