Take a look at the sphere below, which we can assume is made up of polygons arranged in a sphere. Each polygon has an 'x' axis rotation, and a 'y' axis rotation, based on where it occurs on the sphere.
Imagine that there is a single light source. For the sake of demonstration that light source is casting light on the sphere at the indicated x and y axis rotation.
If the light 'amount' being received by any polygon was between 0-1 (1 being the 'brightest' point) How would one determine the brightness of any given polygon?
I had assumed that we take the y-axis-offset (how many degrees away the light source is from a polygon, compressed into a 0-1 value) and the x-axis-offset (as before), and use the average value to determine the brightness, but imagining this in my head it feels like this would cause a 'diamond' shaped light. Perhaps my assumption is wrong, and this is the correct understanding of lighting this sphere, but if not...
What is the correct process for determining the brightness of these polygons given this scenario?
I apologize if this question has already been asked, I was not able to find another example which articulates the question I have asked, particularly in simple terms. It's possible I am not using the right terms when searching, so perhaps that would be a sufficient answer?
Thanks in advance for any assistance
Edit: before I receive a selection of confusing, high-level mathematical formulas, please remember that I am not a maths major. a practical example, such as pseudo-code would be far more useful and relevant for readers on stackoverflow. thanks again