Derpius / VisTrace

Garry's Mod binary module for tracing meshes at high speed on the CPU (and much more)
https://derpius.github.io/VisTrace
MIT License
28 stars 1 forks source link

[feature] Emissive light sampler #56

Open Derpius opened 2 years ago

Derpius commented 2 years ago

Describe the solution you'd like Implement an emissive mesh light importance sampler.

This could just be a uniform sampler, but taking the luminance of the surfaces into account produces far less noise with multiple lights of varying importance.
Additionally integrating emissive textures into the weighting would be great, however adds a lot of complexity and simply including tris that have any emissive pixels would suffice for now.