-
Would someone familiar with the code base tell me how moon phases are implemented in Stellarium. Are they depicted as independent calculations from the environment, or are they raytraced using the position of the sun as a light source? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
This comment was marked as off-topic.
This comment was marked as off-topic.
-
See stellarium/src/core/modules/Planet.cpp Line 958 in b32e618 |
Beta Was this translation helpful? Give feedback.
-
The sphere which represents the Moon is textured and normal mapped, and illuminated by the Sun. The Moon shading model is Oren-Nayar to simulate its highly directional (retro-)reflectivity. The sun is indeed the light source. The Lunar rotational model for V0.21.0 and later is taken from the WGCCRE2009 report. |
Beta Was this translation helpful? Give feedback.
The sphere which represents the Moon is textured and normal mapped, and illuminated by the Sun. The Moon shading model is Oren-Nayar to simulate its highly directional (retro-)reflectivity. The sun is indeed the light source. The Lunar rotational model for V0.21.0 and later is taken from the WGCCRE2009 report.