Do you have an example of the kind of effect you’re trying to achieve? The easiest way might be using CesiumJS’s post processing framework. This example shows you how to apply a custom shader just to a specific model:
The shadows will be cast from the direction of the sun, based on the time of day set by the timeline at the bottom.
There’s a few things you can tweak about shadows in CesiumJS to get better visual quality at the cost of performance or vice versa. For example, you can get a reference to the shadow map from the viewer (https://cesium.com/docs/cesiumjs-ref-doc/Viewer.html?classFilter=viewe#shadowMap) which has a number of properties you can tweak.