Open Reeses-Puffs opened 2 years ago
Here is a directional light map example from Dr. Desten.
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.
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.
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.
Last I checked, Lumi doesn't have these. It'd mainly be useful for Lumi PBR, I'll post an example soon.