Lucio, the technique using z depth export out of Terragen for the depth mask should give yo much better results. You will need to add those nodes to the end of your multishader for the object/s surfaces as well. I also like the revised version better.