The chapter02/scenebasic_attrib.cpp file in the example code The Compiling a shader recipe The Linking a shader program recipe The Sending data to a shader using vertex attributes and vertex buffer objects recipe