Ideas about implementing ray tracking for terrain rendering

Guys, Please suggest some ideas on implementing ray tracking for terrain rendering in cesium JS.
Thanks