The chapter02/scenebasic_uniformblock.cpp file in the example code The Sending data to a shader using uniform variables recipe