I need to render three objects, obj1…obj3, such that obj2 is always drawn over obj1 irrespective of its actual depth and yet is drawn correctly in relation to obj3. I can partially achieve this by :
render obj1
disable depth test
render obj 2
enable depth test
render obj 3
Andrew