There are already implementations for GS: Slin did one, ShadeC has godrays and my Wavefield demo makes use of them too, etc.