Original Post
Hi there,
By using the SetRenderTarget in DX you are able to render anything to a texture created with the D3DUSAGE_RENDERTARGET usage. You can select another texture created with the D3DUSAGE_DEPTHSTENCIL to use as depth stencil buffer.
I want to render this depth-stencil texture, but when i select this texture and render it to screen it is all white. I tried to select only the r, g, b and a colors with a pixel shader but all values seem to be 1.0f.
Does anyone know if it is possible to use a D3DUSAGE_DEPTHSTENCIL texture and render the depth values to screen?
thanx!