It's optical - not software. If you take the lenses out, you wouldn't see any godrays. It's also present in the Vive, and is an artifact of fresnels, so both devices are likely stuck with it. You can reduce it by changing the background light levels, but for something in space (where you sort of need it to be black with high contrast on lit areas, or a loading screen with a black background), you're sort of stuffed. Unless you want grey space.....
What's interesting for me is that the Rift went through the DK1 and DK2 without the fresnel design - I wonder why they went for that in the end as the DK2 was (and still is) a pretty good experience.
I get god rays in my DK2 with project cars.