The company was also doing this part at first. Geoserver layers and tif files released by colleagues who just started data processing were not well understood at first and could not be used, but were still loaded as grayscale maps by wms. Check cesium api and tutorial, correct steps:
After the data of 1.dem is obtained, it is basically a tif file, which needs to be processed as a terrain file, and the main body uses cesiumlab, so the free function can be satisfied.
/
2. After getting the processed folder, you don't need to publish it through geoserver, just put it on the server as a folder. You can get it through the address bar. For local tests, you need to configure cross-domain because you need to request json files. The main body is a server that communicates directly with the operation and maintenance department.
3. Then use Cesium api to load your own data and switch to the terrain position.