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

Set volumetric lighting strength #3158

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Set volumetric lighting strength #3158

merged 1 commit into from
Oct 1, 2024

Conversation

grorp
Copy link
Member

@grorp grorp commented Oct 1, 2024

As a game, it's MTG's responsibility to choose a value here so that players can use the volumetric lighting effect. It shouldn't be necessary for every MTG server install a separate mod that enables volumetric lighting if their players want to use it. This is the same situation as with dynamic shadows.

The value chosen here (0.2) results in the effective volumetric light strength originally chosen by x2048, before volumetric lighting was made game-customizable: https://github.com/minetest/minetest/blob/master/client/shaders/volumetric_light/opengl_fragment.glsl#L93-L94

It's not like this is forcing anything on players or server owners either, the weather API provides overridable callbacks or can be disabled entirely.

@appgurueu appgurueu merged commit df81594 into minetest:master Oct 1, 2024
2 checks passed
@grorp grorp deleted the volu branch October 1, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants