Shader Composition for Globe?

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 :wink:



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:

The following pull request may also be useful but I have not looked at it.



Great, thanks Patrick, I’ll figure something out :wink: