Accurate shadow rate

CesiumJS already provides shadow effects, but that's a whole effect, and I need to do more refined results, such as an exact number, to show how much an object is specifically affected by shadow throughout the day.What should I do? Can you give me some ideas?

You could try to dig into the internals of the shadow system in the source code to see if you can extend it to compute what you need. I haven’t touched that part of the engine myself though. How would you compute this exact number from the shadows? Like what type of information would you need from the engine for this?