Skip to content
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

Night sky: Fix brightness threshold for applying night colours #7859

Merged
merged 1 commit into from
Nov 12, 2018
Merged

Night sky: Fix brightness threshold for applying night colours #7859

merged 1 commit into from
Nov 12, 2018

Conversation

paramat
Copy link
Contributor

@paramat paramat commented Nov 12, 2018

Night sky: Fix brightness threshold for applying night colours

Previously, 'time_brightness' never fell below the threshold so
night sky colours were not applied.

Increase the threshold value. But now also set it to a value less
sensitive to possible future small changes in 'time_brightness',
by setting it halfway between the 'time_brightness' values for
darkest night and first stage of dawn.
///////////////////////

Fixes #7858
Possibly due to recent changes to the light curve, time_brightness is now 0.0753 at night so no longer falls below 0.07, so night sky colours were not applied.
Change to < 0.08f.

screenshot_20181112_205255

^ PR
H 215 S 100 V 7

screenshot_20181112_205142

^ MT master
H 210 S 44 V 7

Daytime sky is H 215 S 44 V 98.
So night sky is unchanged in brightness, but now saturation is at maximum for a nice deep blue. Hue now matches daytime sky hue.

@paramat paramat added @ Client / Audiovisuals Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines Bugfix 🐛 PRs that fix a bug WIP labels Nov 12, 2018
Previously, 'time_brightness' never fell below the threshold so
night sky colours were not applied.

Increase the threshold value. But now also set it to a value less
sensitive to possible future small changes in 'time_brightness',
by setting it halfway between the 'time_brightness' values for
darkest night and first stage of dawn.
@paramat paramat removed the WIP label Nov 12, 2018
@paramat paramat changed the title Night sky: Fix threshold for applying night colours Night sky: Fix brightness threshold for applying night colours Nov 12, 2018
@paramat
Copy link
Contributor Author

paramat commented Nov 12, 2018

Updated with a less sensitive midpoint value, retested.

@paramat paramat merged commit 85b01ea into minetest:master Nov 12, 2018
@paramat paramat deleted the fixnighttb branch November 22, 2018 04:36
osjc pushed a commit to osjc/minetest that referenced this pull request Jan 23, 2019
…est#7859)

Previously, 'time_brightness' never fell below the threshold so
night sky colours were not applied.

Increase the threshold value. But now also set it to a value less
sensitive to possible future small changes in 'time_brightness',
by setting it halfway between the 'time_brightness' values for
darkest night and first stage of dawn.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix 🐛 PRs that fix a bug @ Client / Audiovisuals Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant