Added generic function for creating fragment shaders for picking