Skip to content

Use more intuitive sun controls; refactor code#1577

Open
Peregrine05 wants to merge 4 commits intochunky-dev:masterfrom
Peregrine05:sun-settings
Open

Use more intuitive sun controls; refactor code#1577
Peregrine05 wants to merge 4 commits intochunky-dev:masterfrom
Peregrine05:sun-settings

Conversation

@Peregrine05
Copy link
Copy Markdown
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
Copy Markdown
Member

Should unchecking Enable sunlight disable the sun sampling strategy dropdown?

@leMaik leMaik added the GUI label Apr 21, 2023
Comment thread chunky/src/java/se/llbit/chunky/renderer/scene/Sky.java
Comment on lines -452 to -454
ray.color.scale(skyExposure);
ray.color.scale(apparentSkyLightModifier);
addSunColor(ray);
Copy link
Copy Markdown
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
Copy Markdown
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