Leave this example if you want, but I would have just made a primitive per material and shown them all at once; it is a better showcase and avoids all the UI code, providing a better example of the actual Cesium API.