xycaleth / OpenJK

Community effort to maintain and improve Jedi Academy + Jedi Outcast released by Raven Software
GNU General Public License v2.0
16 stars 3 forks source link

Flares #23

Open xycaleth opened 8 years ago

xycaleth commented 8 years ago

Implement flares for parity with vanilla renderer.

xycaleth commented 8 years ago

Could potentially use occlusion queries for this? In frame N, render a square where the flare light would be and then perform a occlusion query. In frame N+2, read back query result and draw a flare if the square was visible.