Original Post
Hi, I have a shader and a shadowMap as a sampler2Dshadow - input. Now I want to render the depthvalues explicitly, that is I want to get a grey-image which represents the depth-values of my depthtexture, seen from the lightsource. How can I accomplish this? I guess I need to use texture2D as access-function, but how do I get the corresponding coordinates in my fragment-shader? Has anybody done something like this already? any shader-code would be a great help! thanks, Icebraker