mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-22 23:12:59 +08:00
Fixed rendering of helpers in deferred mode
This commit is contained in:
parent
43d6bf1068
commit
5fb8d25770
@ -621,7 +621,14 @@ namespace CodeWalker.Rendering
|
||||
|
||||
if (RenderBoundGeoms.Count > 0) //collision meshes pass
|
||||
{
|
||||
ClearDepth(context); //draw over everything else
|
||||
if (DefScene != null)
|
||||
{
|
||||
DefScene.ClearDepth(context);
|
||||
}
|
||||
else
|
||||
{
|
||||
ClearDepth(context); //draw over everything else
|
||||
}
|
||||
|
||||
context.OutputMerger.BlendState = bsDefault;
|
||||
context.OutputMerger.DepthStencilState = dsEnabled;
|
||||
@ -643,6 +650,7 @@ namespace CodeWalker.Rendering
|
||||
}
|
||||
|
||||
|
||||
context.OutputMerger.BlendState = bsDefault;
|
||||
|
||||
|
||||
RenderedGeometries = GeometryCount;
|
||||
|
Loading…
Reference in New Issue
Block a user