My image provider is too slow, because it requires a ground-height ray-cast per pixel or per group of pixels.
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
My crappy code can be found at the following link...
https://github.com/spencerparkin/UtahAvaMap/blob/master/utah_ava_map.js
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I'm trying to color the terrain based upon slope and aspect. Now, a better way would be to pre-calculate all of this information and then have it served to the client on-demand. Is there not already an image provide out there somewhere that serves images that just provide height information, or normals or slopes or aspects? Because, if so, my image provider could just piggy-back on that other image provider.
Note: I'm not talking about image providers that provide images that you can render. I'm talking about providing images that just contain data like height values or normal vectors, etc. I've searched around quite a bit, but I can't find any useful image providers that provide this kind of information. Do they not exist?
4. The Cesium version you're using, your operating system and browser.
I'm using 1.51 of Cesium on Windows 10 in Chrome.
I've been searching the Cesium git repo looking for details on how the ElevationRamp and the SlopeRamp materials are implemented, but I can't find them anywhere. I can find, for example, PolylineOutlineMaterial.glsl and see how that's coded up. Where on earth is the SlopeRamp.glsl file? I'm going to keep searching in the mean time. It has to be somewhere.
I found the following...
My git skills are failing me. The repo I closed for Cesium has just a master branch whose top commit is 2 years old. Unless Cesium is a dead project, the repo has been moved or something and I've cloned from the wrong origin.
Finally, here it is...
I guess I should try re-cloning the repo.