I've used the following lines of code, and passed presentParams into the device constructor.
presentParams.Windowed = true;
presentParams.SwapEffect = SwapEffect.Discard;
presentParams.EnableAutoDepthStencil = true;
presentParams.AutoDepthStencilFormat = DepthFormat.D16;
However, this does not put the closest stuff in front. I think it's placing the ones that are rendered last in front. What am I doing wrong?
Thanks.
-Nick
presentParams.Windowed = true;
presentParams.SwapEffect = SwapEffect.Discard;
presentParams.EnableAutoDepthStencil = true;
presentParams.AutoDepthStencilFormat = DepthFormat.D16;
However, this does not put the closest stuff in front. I think it's placing the ones that are rendered last in front. What am I doing wrong?
Thanks.
-Nick