-
Notifications
You must be signed in to change notification settings - Fork 78
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
Use more intuitive sun controls; refactor code #1577
base: master
Are you sure you want to change the base?
Conversation
…ode out to another method.
- Re-added an `Enable sunlight` control, which replaces `Sun Sampling Strategy`: `NON_LUMINOUS`. - Added a control to enable and disable skymap interpolation. - Refactored code that returns sky color.
Should unchecking |
ray.color.scale(skyExposure); | ||
ray.color.scale(apparentSkyLightModifier); | ||
addSunColor(ray); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is public. Is it intended to not apply exposure, sky light modifier and sun here anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is only accessed from within Sky.java, so it can be made private (the same goes with getSkyDiffuseColorInner
). It is no longer intended to apply modifications to the sky color in the getSkyColorInterpolated
method; modifications are now done in the getSkyColor
method, after getting the base sky color.
Enable sunlight
control, which replacesSun Sampling Strategy
:NON_LUMINOUS
.