Additive shader image effects problems

Hi guys, i’m trying to make a laser sight using the particles additive shader and it worked really well until i added the depth of field image effect and got this…

Not sure how to fix it as i am relatively new to 3D game engines!

401927--13823--$additive laser.png

Dof and transparent things don’t really play well together unfortunately. That’s true for most of the dof implementations I know off (for example DoF in Call of Duty 4 etc) so it’s not some oversight of the unity team or something like that.

aww…any other workarounds for this?

Try using a shader that writes to the depth buffer:

http://www.unifycommunity.com/wiki/index.php?title=AlphaVertexLitZ

Thanks! I’ll give it a go.