WHAT YOU’LL LEARN IN THIS CHAPTER:
• How to perform per-vertex lighting
• How to generate texture coordinates
• How to squash and stretch objects
This chapter is devoted to the application of vertex shaders. We covered the basic mechanics of OpenGL Shading Language (GLSL) shaders in the preceding chapter, but at some point you have to put the textbook down and start learning by doing. Here, we introduce a handful of shaders that perform various real-world tasks. You are encouraged to use these shaders as a starting point for ...