Original Post
Hi everyone, After projecting a vector into projection space float4 projVec = mul( worldVec, matViewProjection ); I need to extract the depth values that will be written to z-buffer and w-buffer from projVec. How do I do this? It's obvious that projVec.z and/or projVec.w contain the information I need, but I can't figure out how to get it. Thank you