Thanks for all the input. I have tries 2 render passes but am still experiencing the problem and getting a lot of flickering.
Any chance of a full example how this should be done properly.
Any chance of a full example how this should be done properly.