The chapter05/scenetexture.cpp file in the example code
For more information about sending data to a shader via vertex attributes refer to the Sending data to a shader using vertex attributes and vertex buffer objects recipe in Chapter 2, Working with GLSL Programs
The Using per-fragment shading for improved realism recipe in Chapter 4, Lighting and Shading