Shading Mask component working on a surface

Heloo everyone,
I am a new grasshopper-ladybug user and i wonder if there is a way to make the Shading Mask component analyse a whole surface (window), instead of generating skydome shaded parts for only one point.
thank you for help

You can use sunlighthours component for that purpose and average the values for the window.