to get it working with transparent trees you just would have to use the alpha-testing material from the wiki. the tree pixels would be in the z-buffer then.