DethRaid / AndroidRenderer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mesh lights

DethRaid opened this issue · comments

Inject VPLs from mesh lights

We'll need to first generate VPLs from mesh lights. We can sample random triangles, weighted by their area, then sample random points on those triangles. Generating barycentrics randomly should work for now

After that, we can use the existing VPL injection shader to... you know, inject the VPLs