The vegetation alpha script in the wiki should solve your problem.