I would like to change the color of an entity (just the alpha for my example) using a drag bar/slider.
I’ve attached a sandcastle example where I can change the position using Cesium.CallbackProperty but the same approach doesn’t work for colors.
The error I get is:
TypeError: materialProperty.getType is not a function
Any help would be appreciated as I’m sure there is an easy answer to this.
If there isn’t perhaps I should stick to switching colors with a button of preset values instead of a slider like this.
A slider would be great to play with HSL and RGB though.
Example source originally: https://groups.google.com/forum/embed/?place=forum/cesium-dev&showsearch=true&showpopout=true&hideforumtitle=true&fragments=true&parenturl=https%3A%2F%2Fcesiumjs.org%2Fforum.html#!searchin/cesium-dev/entity$20knockout/cesium-dev/8lWFpiEjFjI/eb3C0hylYx4J
Hello World (1).html (4.51 KB)