spiralhalo / LumiLights

Gameplay focused visual improvements for Canvas
GNU Lesser General Public License v3.0
124 stars 11 forks source link

New feature: directional light maps #65

Open Reeses-Puffs opened 2 years ago

Reeses-Puffs commented 2 years ago

Last I checked, Lumi doesn't have these. It'd mainly be useful for Lumi PBR, I'll post an example soon.

Reeses-Puffs commented 2 years ago

2021-12-03_00 09 17 Here is a directional light map example from Dr. Desten.

spiralhalo commented 2 years ago

I had an idea to implement this, but default lightmap has the notorious diamond/cross pattern. I can try anyway, but the result would be better if we first somehow create an HD lightmap.

Edit: nevermind I have no idea what I'm doing.

Reeses-Puffs commented 2 years ago

If you have no idea what you're doing you could ask Dr. Desten on shaderlabs about his implementation. I'm pretty sure he's using the default light map so he might be helpful.

spiralhalo commented 2 years ago

I tried making this direction buffer based on vanilla lightmap. Looks promising, but something wrong is going on at the edges.

In case it's not obvious, the middle of the diamonds are light sources, glowstone block to be precise.

image