Hi Cesium team!
Is there a mechanism for modifying the Globe shaders at runtime without having to completely replace them? I’m thinking something like the Material/Fabric framework. For example, say I wanted to enable a mode to display the globe using a color ramp based on the height of the terrain. I didn’t see anything obvious, but I was hoping I was overlooking a feature that was already there
Thanks!
Jason
Hi Jason,
You are right, there is not a way to do this with the public API or a clean way to do this internally.
Contributions here would be great. A good place to start is where the shaders are concatenated for different imagery layers and post-processing:
https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/GlobeSurfaceShaderSet.js
The following pull request may also be useful but I have not looked at it.
Apply color palette on render. by NaderCHASER · Pull Request #4953 · CesiumGS/cesium · GitHub
Thanks,
Patrick
Great, thanks Patrick, I’ll figure something out