Hmm. Something doesn't look quite right.
The ray effect is a result of light hitting particles in space. Particles that happen to be in the shadow of solid opaque objects don't get hit by light, so they appear as darker areas.
There's no dust in the cockpit (hopefully the pilots aren't allowed to smoke during sorties) except maybe when ship is heavily damaged and there's an electronics fire onboard or something. In which case they would probably seal their flight suit and vent atmosphere.
So, the cockpit frame should cover the ray effect to give an impression that the effect happens outside the ship rather than being something else... Is it possible to get the cockpit to cover the effect, or will cockpit be part of it by virtue of being a 3d object?