Hello, I want to share happiness of successfully finding out the way to realize sunlight analysis in CesiumJS, through custom offscreen render, I learned a lot in the process. The result is below:
use different color to show different sunlight coverage in a specific location, that blue is low coverage of sunlight, while red is the opposite, high coverage rate. And the date and time range could be self define. default is in 2023-12-22 from 6:am to 6:pm
show with pionts and polygon geometry, when in polygon geometry, the height could change:
It is complex, because we need to get the offscreen render texture and compute coordinate of fragment to compare the depth, then get a specific val to flag whethere a specific location place been in the sunlight, finally to accumulate the vals to get the percentage rate.