Skip to content

Fullneb Revamp#7352

Open
BMagnu wants to merge 6 commits intoscp-fs2open:masterfrom
BMagnu:fog_foo
Open

Fullneb Revamp#7352
BMagnu wants to merge 6 commits intoscp-fs2open:masterfrom
BMagnu:fog_foo

Conversation

@BMagnu
Copy link
Copy Markdown
Member

@BMagnu BMagnu commented Apr 6, 2026

This revamps the fullneb configuration from near and far multipliers with fixed nebula transparencies to a much more intuitive near-distance + configurable transparency at 1000m depth. It furthermore adds clip distances after which the nebula does not gain opacity with more depth, split between skyboxes and everything else. This is needed, and accordingly default-configured for old missions, because prior to #7245, skybox depth was incorrectly clipped to 0 in the shader due to float overflow, resulting in non-fogged skyboxes. #7245 fixed that, and in turn made skyboxes get fogged with full opacity, essentially completely hiding them when fog is enabled.
This PR makes the respective values fully configurable, allowing for full fogging, no fogging, and anything inbetween for skyboxes and/or ships respectively.
Note that this is the main conversion and bugfix first, the actual FRED-Dialogue for configuring the new-type values is outstanding and will follow in a future PR as to not delay this bugfix

@BMagnu BMagnu added fix A fix for bugs, not-a-bugs, and/or regressions. graphics A feature or issue related to graphics (2d and 3d) labels Apr 6, 2026
@BMagnu BMagnu added this to the Release 26.0 milestone Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A fix for bugs, not-a-bugs, and/or regressions. graphics A feature or issue related to graphics (2d and 3d)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant