Skip to content

Conversation

@Peregrine05
Copy link
Member

  • 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.

image
image

ThatRedox and others added 2 commits April 13, 2023 20:51
- 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.
@ThatRedox
Copy link
Member

Should unchecking Enable sunlight disable the sun sampling strategy dropdown?

@leMaik leMaik added the GUI label Apr 21, 2023
Comment on lines -452 to -454
ray.color.scale(skyExposure);
ray.color.scale(apparentSkyLightModifier);
addSunColor(ray);
Copy link
Member

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?

Copy link
Member Author

@Peregrine05 Peregrine05 Apr 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants