bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
https://bkaradzic.github.io/bgfx/overview.html
BSD 2-Clause "Simplified" License
14.94k stars 1.94k forks source link

xx-area-lights - Real-Time Polygonal-Light Shading with Linearly Transformed Cosines #1609

Open bkaradzic opened 5 years ago

bkaradzic commented 5 years ago

Simplify and move area lights example (no Sponza) from SIGGRAPH 2016 talk into bgfx example:

https://github.com/bkaradzic/bgfx#real-time-polygonal-light-shading-with-linearly-transformed-cosines

This code is already compatible with older version of bgfx, it just need updating in case of API changes, and scene simplification so it doesn't require Sponza.

ltc_1

bkaradzic commented 2 years ago

Port "Real-time Shading with Free-form Planar Area Lights using Linearly Transformed Cosines" to bgfx as an example: https://github.com/Paul180297/BezierLightLTC#free-form-area-light-rendering

Paper: https://www.jcgt.org/published/0011/01/01/ https://tatsy.github.io/projects/kuge2021bezlight