Hi,
I extruded the lightshaft effect from my Wavefield demo to an extra project and optimized several aspects.

Thx to Slin who converted a HLSL function to Lite-C wich gave a significant speed boost.
Get the demo from
here.
Just check the readme for more information about how to implement the effect in your project.
Have fun,
Hummel