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