bryanedds / Nu

Repository hosting the open-source Nu Game Engine and related projects.
MIT License
1.05k stars 151 forks source link

Ability to fade between two light maps. #796

Open bryanedds opened 2 months ago

bryanedds commented 2 months ago

Light maps might works better outdoors with the ability to fade between two light maps instead of blending between them geometrically. Basically, you'd have the global light map based on the skybox, then as you enter a light maps bounds, the use of the light map fades in. This is the sort of thing needed for a shmup or a racing game.

I'm not sure if this functionality can be placed side-by-side with the existing light mapping pipeline tho. Maybe we'd need an alternative light mapping pipeline to make it work and have the developer selected the mode via LightingConfig. Ideally, they could work side-by-side with a single pipeline perhaps in a reasonably efficient way. We'll have to see.

bryanedds commented 2 months ago

Additionally, we probably also need to support an option to soften light map transition from global light map to bounded light map.