May 2019
Intermediate to advanced
542 pages
13h 37m
English
Despite the name, a shader has nothing to do with shadows or shading; it is simply the name for a unit of code that runs on your GPU. In the previous section, we talked about some stages of the rendering pipeline being user-definable; in fact, some of them must be defined, as most OpenGL implementations do not provide default behavior for certain stages. To define those stages, we need to write a shader.
At a minimum, we need to define two shaders:
Read now
Unlock full access