I’m new to Cesium and looking for a way to apply custom fragment shader to Cesium scene.
Hi,
If you are looking for a way to apply a filter to the whole scene, have
a look to the postprocess-hook branch.
There is a Post Process Filter.html to get you started.
Also check out Cesium materials:
http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Materials.html&label=Showcases
Fabric · CesiumGS/cesium Wiki · GitHub (code examples may be slightly dated)
Patrick
Thank you this is exactly what I need
postprocess-hook works great, I’ve managed to apply special effect to cesium.
Now I need to apply time variable to my shader. How can I update uniforms?
I want to do something like this:
What kind of “time” are you looking for?
You might just be able to use the built-in czm_frameNumber.
Patrick