I am currently working on a project involving the creation of 3D images of the moon at different phases, incorporating libration effects. Here is a snapshot of my first quarter moon image:
https://i.sstatic.net/MTb4f.png
While the image looks good, I am facing an issue with the gradual transition from light to shadow. Since the moon lacks an atmosphere, the transition should be more abrupt.
Here is the code I have developed so far:
// Insert your code here
The above code utilizes an equirectangular moon map (provided by NASA) like this:
https://i.sstatic.net/vE4iK.png
...and maps it onto a sphere to allow for rotation and illumination in different ways.
Despite my research efforts, I have only come across information about objects casting shadows on other objects. I have not found any resources on adjusting shadows on a single object with a main light source.
I have incorporated some ambient lighting in my code to represent "earth shine," ensuring that the shadowed part of the moon is not completely dark. However, removing this ambient lighting does not significantly enhance the sharpness of the shadow boundary.
Could anyone provide insights on what adjustments I should make to achieve the sharper shadow boundaries I desire?