Render 2D with depth, reverse depth of camera projection

dirty fix in Renderer...
This commit is contained in:
Simon Lübeß
2024-02-16 17:31:32 +01:00
parent 0321bd91c4
commit 59aaec572b
5 changed files with 24 additions and 10 deletions
+4
View File
@@ -758,10 +758,14 @@ namespace GlitchyEngine.Renderer
return;
SortInstances();
RenderCommand.SetDepthStencilState(Renderer.[Friend]_meshDepthStencilState);
DrawDeferredQuads();
DrawDeferredCircles();
DrawDeferredLines();
RenderCommand.SetDepthStencilState(Renderer.[Friend]_fullscreenDepthState);
}
private static void DrawDeferredQuads()