I've got some models which I am drawing and I need to disable the DepthBuffer so that the models are drawn in the order I need.
To do this I did the following
private readonly DepthStencilState _DepthStencilState = new DepthStencilState()
DepthBufferEnable = true,
DepthBufferWriteEnable = true
GraphicsDeviceManager.GraphicsDevice.DepthStencilState = _DepthStencilState;
However the following code causes holes to appear in my models,
Here are some examples of my models with DepthBuffer Enabled:
And here are some examples with DepthBuffer Disabled:
Anyone have any idea what might be going on? Any guidance would be sincerely appreciated.