I have tried to code in such case, render to texture and then sample using shader but failed due to missing something I guess.
Can anyone provide an example of this case, as simple as possible or give a linkage to such source for downloading.