- implement depth bias

This commit is contained in:
Magnus Norddahl 2019-05-28 06:45:21 +02:00
commit bd591c75fb
5 changed files with 69 additions and 57 deletions

View file

@ -108,7 +108,7 @@ void PolyRenderState::Clear(int targets)
//if (targets & CT_Color)
// PolyTriangleDrawer::ClearColor(GetPolyFrameBuffer()->GetDrawCommands());
if (targets & CT_Depth)
PolyTriangleDrawer::ClearDepth(GetPolyFrameBuffer()->GetDrawCommands(), 0.0f);
PolyTriangleDrawer::ClearDepth(GetPolyFrameBuffer()->GetDrawCommands(), 65535.0f);
if (targets & CT_Stencil)
PolyTriangleDrawer::ClearStencil(GetPolyFrameBuffer()->GetDrawCommands(), 0);
}