I am using MonoGame to draw some sprites and some models in the same game. I can draw and see everything, but the render states are all wrong.
Before drawing my models I try to set back the render states and then draw, but the depth buffer is all wrong. Here is my (F#) broken code, what am I doing wrong?
this.GraphicsDevice.Value.RasterizerState <- RasterizerState.CullCounterClockwise
this.GraphicsDevice.Value.DepthStencilState <- DepthStencilState.Default
this.GraphicsDevice.Value.BlendState <- BlendState.Opaque
for m in this.AllModels do
m.Model.Draw(m.World, camera.View, camera.Projection)