LumiLights icon indicating copy to clipboard operation
LumiLights copied to clipboard

New feature: directional light maps

Open Reeses-Puffs opened this issue 3 years ago • 4 comments

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

Reeses-Puffs avatar Dec 02 '21 23:12 Reeses-Puffs

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

Reeses-Puffs avatar Dec 02 '21 23:12 Reeses-Puffs

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.

spiralhalo avatar Dec 19 '21 16:12 spiralhalo

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.

Reeses-Puffs avatar Dec 19 '21 20:12 Reeses-Puffs

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

spiralhalo avatar Dec 22 '21 13:12 spiralhalo