I would like to create glsl to add to the emission(?) of an Entity which was loaded from a GLTF model. Specifically I want to add a procedural sparkle as f(fragcoord, time).
I've seen the material/appearance/fabric tutorials, and looked at the schema, but its still not clear how to do this specifically, mostly due to the lack of complete sandcastle-style examples. The terminology and relation between Material, MaterialAppearance, and Appearance is confusing as well. And I'm not sure how to reference and append to an Entity's model.material.materials(?)
Cesium doesn’t have great support for editing the model’s material after it has been loaded. You can change values of the shader parameters, but you can’t set the material to a new type. If you want a different material for your model, you will have to include the shader code in the model’s glTF file.
If you look at the spec, a shader has a uri that can point to a glsl file.
If you did want to change a property of the material you can do it like this:
Hm thats answers my question, its not a plausible solution.
I have multiple types of models which I need this effect applied to, perhaps the terrain as well.
I was hoping for materials as an easy approach, but now I think best approach is to render a particle cloud in screenspace with stencil stuff. I'll start a new thread.