How to apply fragment shader to cesium?

565 views
Skip to first unread message

drykovanov

unread,
Jan 5, 2015, 8:04:54 AM1/5/15
to cesiu...@googlegroups.com
I'm new to Cesium and looking for a way to apply custom fragment shader to Cesium scene.   

Guillaume Beraudo

unread,
Jan 5, 2015, 8:23:20 AM1/5/15
to cesiu...@googlegroups.com
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.


--
Guillaume Beraudo
Camptocamp Engineer

Patrick Cozzi

unread,
Jan 5, 2015, 6:40:21 PM1/5/15
to cesiu...@googlegroups.com

drykovanov

unread,
Jan 6, 2015, 12:34:10 PM1/6/15
to cesiu...@googlegroups.com
Thank you this is exactly what I need

понедельник, 5 января 2015 г., 16:23:20 UTC+3 пользователь Guillaume Beraudo написал:

drykovanov

unread,
Jan 6, 2015, 2:36:43 PM1/6/15
to cesiu...@googlegroups.com
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:
 

Patrick Cozzi

unread,
Jan 6, 2015, 4:20:02 PM1/6/15
to cesiu...@googlegroups.com
What kind of "time" are you looking for?

You might just be able to use the built-in czm_frameNumber.

Patrick

--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/RfFMGyVHsTM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages