Stop trail renderer from terminating half-way into the camera.

I have a camera following an object with a trail renderer, however when the trail renderer intersects with the camera it cuts the trail renderer off at that point… is there a way to prevent this happening, or as an alternative ensure that the trail renderer always fades out before it intersects with the camera?

[684-Screen+Shot+2012-04-19+at+12.49.58.png|684]

You should be able to create a shader that applies additional transparency when near the camera in the material you are using. You can find our built in shader source code here. Then look up the shader you are using, make a copy of it and apply the necessary modifications.

Not had a chance to try Lasse’s answer yet, but I stumbled across an alternative that works: setting the ‘near’ clipping plane in the Camera inspector from 0.3 to 0.01 prevents the trail from clipping until the edges, which is much preferred.

Are there any disadvantages to this approach?