mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-23 07:22:52 +08:00
Fix for wireframe mode with deferred shading
This commit is contained in:
parent
070a2be42e
commit
3d2b7c5a23
@ -573,13 +573,14 @@ namespace CodeWalker.Rendering
|
||||
|
||||
if (DefScene != null)
|
||||
{
|
||||
context.Rasterizer.State = rsSolid;
|
||||
|
||||
DefScene.SetSceneColour(context);
|
||||
|
||||
DefScene.RenderLights(context, camera, Shadowmap, GlobalLights);
|
||||
|
||||
if (RenderLODLights.Count > 0) //LOD lights pass
|
||||
{
|
||||
context.Rasterizer.State = rsSolid;
|
||||
context.OutputMerger.BlendState = bsAdd; //additive blend for lights...
|
||||
context.OutputMerger.DepthStencilState = dsDisableWriteRev;//only render parts behind or at surface
|
||||
DefScene.RenderLights(context, camera, RenderLODLights);
|
||||
@ -587,7 +588,6 @@ namespace CodeWalker.Rendering
|
||||
|
||||
if (RenderLights.Count > 0)
|
||||
{
|
||||
context.Rasterizer.State = rsSolid;
|
||||
context.OutputMerger.BlendState = bsAdd; //additive blend for lights...
|
||||
context.OutputMerger.DepthStencilState = dsDisableWriteRev;//only render parts behind or at surface
|
||||
DefScene.RenderLights(context, camera, RenderLights);
|
||||
|
Loading…
Reference in New Issue
Block a user