[osg-users] How to render depth texture

Marcus Fritzen mfritzen at uni-koblenz.de
Wed Sep 12 08:40:01 PDT 2007


is there an easy and fast way how I can render the depth values from the 
depth texture to screen so that the scene is in grayscale? If i do a 
shadow2D(...) in the shader, it is directly compared with the actual 
depth value or am I wrong? So I am unsure how I can reach the actual 
depth value stored in the depth texture.


More information about the osg-users mailing list