
Soo...I have integrated the two parts 1)cuda for hair creation and rendering 2)cg shaders for the edge detection giving the silhouette.
Note:-we were considering implementing the bitonic sort for sorting the hair strands.But it seems that enabling the depth test has solved the problem.
-Chitranjan