# Any examples or tips on how to make animated shaders for Cesium

**URL:** <https://community.cesium.com/t/any-examples-or-tips-on-how-to-make-animated-shaders-for-cesium/6185>\
**Category:** CesiumJS\
**Created:** [October 25, 2017, 2:05pm UTC](https://community.cesium.com/t/any-examples-or-tips-on-how-to-make-animated-shaders-for-cesium/6185 "2017-10-25T14:05:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garth\_Tissington](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/garth_tissington/32/2322_2.png) [@Garth\_Tissington](https://community.cesium.com/u/Garth_Tissington)\
**Post date:** [October 25, 2017, 2:05pm UTC](https://community.cesium.com/t/any-examples-or-tips-on-how-to-make-animated-shaders-for-cesium/6185/1 "2017-10-25T14:05:54Z")

</div>

Hi,

I have been playing with the Fabric and appearance shader objects. Very nice!

But, Is there a hook to find the render time and frame number etc to support shaders like this.

[https://www.shadertoy.com/view/XdsSDn](https://www.shadertoy.com/view/XdsSDn)

In ShaderToy you can use shader uniforms such as

uniform float iTime; // shader playback time (in seconds)

uniform float iTimeDelta; // render time (in seconds)

uniform int iFrame; // shader playback frame

Are there equivalent uniforms available in the Cesium renderer?

Thanks very much in advance.

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [October 25, 2017, 11:08pm UTC](https://community.cesium.com/t/any-examples-or-tips-on-how-to-make-animated-shaders-for-cesium/6185/2 "2017-10-25T23:08:59Z")

</div>

In the shader you can use the built-in uniform czm\_frameNumber to get the frame number. I can’t find a czm\_renderTime or similar uniform though, but you could add that as a uniform to your material and update it every frame based on the current time in seconds.
