-
-
Notifications
You must be signed in to change notification settings - Fork 394
rayleigh scattering: use accurate model #6135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Nice work. Would you mind giving some explanation of the |
Model uses two different formulas for calculating pressure/density The one above tropopause is not implemented yet. |
Any pictures? What would "slow" vs "fast" mean here, in performance? Would this put a burden on older machines that can still run pioneer? |
slow - O(n^2) complexity: 8 samples for calculating density for light ray |
This fixes #6052 |
There seem to be some commits that don't belong in this change history now |
Make tropopause at 0.1 bar [1] Temperature starts dropping above tropopause [1] https://www.washington.edu/news/2013/12/09/astronomers-solve-temperature-mystery-of-planetary-atmospheres/
density calculating has been completely nonsense according to units used
fixed |
Faster approach lead to some unpleasant render artefacts, use slower but accurate approach.
This also makes water reflect rays from skylight, bringing realistic Earth colors.