Procedural Lens Flares - Real-time HDR lens flare shaders for Kerbal Space Program
v1.0.0 [public testing release]
Features
Real-time highly customizable lens flare shader including anamorphic streaks, ghosts, and built in eye adaption
Removes all pre-baked flares and scales light emmissive textures into HDR color range on all stock light parts, EVA helmet lights, and buildings
Customizable Scatterer sunflare that is in HDR color range
Required Mod Dependencies
Strongly Recommended Mods
Scatterer (allows for HDR sunflare replacer)
Deferred (Deferred rendering pipeline)
Waterfall + your favorite config (implements HDR engine plumes)
Environmental Visual Enhancements + your favorite config (volumetric clouds)
Parallax
Compatible Mods
Restock
Any other part mods using stock 'ModuleLight' (lights should be replaced with HDR emissives)
Compatibility Issues (FUTURE SUPPORT PLANNED)
Planet packs (all star sunflares will be replaced with standard sunflare designed for Kerbol if using replace scatterer flare)
Building packs (Kerbal Konstructs and similar mods may fail to have pre-baked flares replaced with HDR point lights)
Install Instructions
Install TUFX and verify that your active profile has HDR enabled
Open 'GameData' folder inside release
Paste 'ProceduralLensFlares' folder into your KSP 'GameData' folder
In flight or map view click the toolbar icon or press 'LeftAlt' + 'F8' and edit settings to your liking!
Known Issues
HDR sunflare may take a while to load if you directly enter tracking station from space centre (FIX IN PROGRESS)
HDR values are suppressed while on Duna with Scatterer (NOT RECOMMENDED WORKAROUND: go into 'StockScattererConfigs' -> 'planetsList.cfg' and changing hasOcean = False to hasOcean = True for Duna - will slightly break Duna's atmo scattering)
Lights may seem too bright (FIX: edit in game light color! HDR emissive light boosting is designed for a range of brightness from traffic on the other side of the road at night bright to soft glows)
Probably more I have not found!
Future Plans
Fix bugs!
Improved documentation for planet, part, and building modders
Directly allow the hook for replacing pre-baked flares to read from other mods in GameData
Multiple star support, with in-game flare editing for each star
Source Code and License
Source Code: https://github.com/Benzobean1/ProceduralLensFlares
Releases: https://github.com/Benzobean1/ProceduralLensFlares/releases
License: GNU General Public License v3.0 (GPLv3) — see LICENSE.txt
Please enjoy and all feedback is appreciated!
An LLM was used to help write and debug code for this project
Raw stats are from the beginning of time until now. Each follower and download entry represents one hour of data. Uneventful hours are omitted.