How to color code building level on cesium

Any idea how to color code building level on cesium? My data file is 3d gltf format. The expected outcome:

You could use classification/clamping to models, see:

https://sandcastle.cesium.com/index.html?src=3D%20Tiles%20Photogrammetry%20Classification.html

https://sandcastle.cesium.com/index.html?src=Classification.html

https://sandcastle.cesium.com/index.html?src=Classification%20Types.html