Need help with custom sunshaft system.

Found a possible solution:

However, performance impact may be scary esp on high resolution… so, guess i will give it a try and see what happens. I just cant give up on sunshafts in my space sim.

The problem is they were hitting distance stars in the background that are anywhere from 6 to 100 million meters away, they are emmisive so the sun of the solar system the player is currently in produces a shaft and it was hitting them as the ship passed by and other distance suns were clipping it.