Skip to content

Commit 708cc5e

Browse files
Synchronize changes from 1.6 master branch [ci skip]
8414476 Render stages for 3D primitives (#3402)
2 parents f37f897 + 8414476 commit 708cc5e

14 files changed

+142
-60
lines changed

Client/core/CCore.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2014,6 +2014,10 @@ void CCore::OnPreHUDRender()
20142014

20152015
CGraphics::GetSingleton().EnteringMTARenderZone();
20162016

2017+
// Draw post-fx 3D primitives
2018+
CGraphics::GetSingleton().DrawPrimitive3DPostFXQueue();
2019+
CGraphics::GetSingleton().DrawLine3DPostFXQueue();
2020+
20172021
// Maybe capture screen and other stuff
20182022
CGraphics::GetSingleton().GetRenderItemManager()->DoPulse();
20192023

Client/core/Graphics/CGraphics.cpp

Lines changed: 48 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@ CGraphics::CGraphics(CLocalGUI* pGUI)
5555
m_pRenderItemManager = new CRenderItemManager();
5656
m_pTileBatcher = new CTileBatcher();
5757
m_pLine3DBatcherPreGUI = new CLine3DBatcher(true);
58+
m_pLine3DBatcherPostFX = new CLine3DBatcher(true);
5859
m_pLine3DBatcherPostGUI = new CLine3DBatcher(false);
5960
m_pMaterialLine3DBatcherPreGUI = new CMaterialLine3DBatcher(true);
61+
m_pMaterialLine3DBatcherPostFX = new CMaterialLine3DBatcher(true);
6062
m_pMaterialLine3DBatcherPostGUI = new CMaterialLine3DBatcher(false);
6163
m_pPrimitive3DBatcherPreGUI = new CPrimitive3DBatcher(true);
64+
m_pPrimitive3DBatcherPostFX = new CPrimitive3DBatcher(true);
6265
m_pPrimitive3DBatcherPostGUI = new CPrimitive3DBatcher(false);
6366
m_pMaterialPrimitive3DBatcherPreGUI = new CMaterialPrimitive3DBatcher(true, this);
67+
m_pMaterialPrimitive3DBatcherPostFX = new CMaterialPrimitive3DBatcher(true, this);
6468
m_pMaterialPrimitive3DBatcherPostGUI = new CMaterialPrimitive3DBatcher(false, this);
6569
m_pPrimitiveBatcher = new CPrimitiveBatcher();
6670
m_pPrimitiveMaterialBatcher = new CPrimitiveMaterialBatcher(this);
@@ -83,14 +87,18 @@ CGraphics::~CGraphics()
8387
SAFE_DELETE(m_pRenderItemManager);
8488
SAFE_DELETE(m_pTileBatcher);
8589
SAFE_DELETE(m_pLine3DBatcherPreGUI);
90+
SAFE_DELETE(m_pLine3DBatcherPostFX);
8691
SAFE_DELETE(m_pLine3DBatcherPostGUI);
8792
SAFE_DELETE(m_pMaterialLine3DBatcherPreGUI);
93+
SAFE_DELETE(m_pMaterialLine3DBatcherPostFX);
8894
SAFE_DELETE(m_pMaterialLine3DBatcherPostGUI);
8995
SAFE_DELETE(m_pPrimitiveBatcher);
9096
SAFE_DELETE(m_pPrimitiveMaterialBatcher);
9197
SAFE_DELETE(m_pPrimitive3DBatcherPreGUI);
98+
SAFE_DELETE(m_pPrimitive3DBatcherPostFX);
9299
SAFE_DELETE(m_pPrimitive3DBatcherPostGUI);
93100
SAFE_DELETE(m_pMaterialPrimitive3DBatcherPreGUI);
101+
SAFE_DELETE(m_pMaterialPrimitive3DBatcherPostFX);
94102
SAFE_DELETE(m_pMaterialPrimitive3DBatcherPostGUI);
95103
SAFE_DELETE(m_pScreenGrabber);
96104
SAFE_DELETE(m_pPixelsManager);
@@ -207,7 +215,7 @@ void CGraphics::DrawStringOutline(const RECT& rect, unsigned long ulColor, const
207215

208216
void CGraphics::DrawLine3D(const CVector& vecBegin, const CVector& vecEnd, unsigned long ulColor, float fWidth)
209217
{
210-
DrawLine3DQueued(vecBegin, vecEnd, fWidth, ulColor, true);
218+
DrawLine3DQueued(vecBegin, vecEnd, fWidth, ulColor, eRenderStage::POST_GUI);
211219
}
212220

213221
void CGraphics::DrawRectangleInternal(float fX, float fY, float fWidth, float fHeight, unsigned long ulColor, bool bSubPixelPositioning)
@@ -831,21 +839,23 @@ void CGraphics::DrawLineQueued(float fX1, float fY1, float fX2, float fY2, float
831839
AddQueueItem(Item, bPostGUI);
832840
}
833841

834-
void CGraphics::DrawLine3DQueued(const CVector& vecBegin, const CVector& vecEnd, float fWidth, unsigned long ulColor, bool bPostGUI)
842+
void CGraphics::DrawLine3DQueued(const CVector& vecBegin, const CVector& vecEnd, float fWidth, unsigned long ulColor, eRenderStage stage)
835843
{
836844
if (g_pCore->IsWindowMinimized())
837845
return;
838846

839847
// Add it to the queue
840-
if (bPostGUI && !CCore::GetSingleton().IsMenuVisible())
848+
if (stage == eRenderStage::POST_GUI && !CCore::GetSingleton().IsMenuVisible())
841849
m_pLine3DBatcherPostGUI->AddLine3D(vecBegin, vecEnd, fWidth, ulColor);
842-
else
850+
else if (stage == eRenderStage::PRE_FX)
843851
m_pLine3DBatcherPreGUI->AddLine3D(vecBegin, vecEnd, fWidth, ulColor);
852+
else
853+
m_pLine3DBatcherPostFX->AddLine3D(vecBegin, vecEnd, fWidth, ulColor);
844854
}
845855

846856
void CGraphics::DrawMaterialLine3DQueued(const CVector& vecBegin, const CVector& vecEnd, float fWidth, unsigned long ulColor, CMaterialItem* pMaterial,
847857
float fU, float fV, float fSizeU, float fSizeV, bool bRelativeUV, bool bFlipUV, bool bUseFaceToward,
848-
const CVector& vecFaceToward, bool bPostGUI)
858+
const CVector& vecFaceToward, eRenderStage stage)
849859
{
850860
if (g_pCore->IsWindowMinimized())
851861
return;
@@ -857,12 +867,15 @@ void CGraphics::DrawMaterialLine3DQueued(const CVector& vecBegin, const CVector&
857867
}
858868

859869
// Add it to the queue
860-
if (bPostGUI && !CCore::GetSingleton().IsMenuVisible())
870+
if (stage == eRenderStage::POST_GUI && !CCore::GetSingleton().IsMenuVisible())
861871
m_pMaterialLine3DBatcherPostGUI->AddLine3D(vecBegin, vecEnd, fWidth, ulColor, pMaterial, fU, fV, fSizeU, fSizeV, bRelativeUV, bFlipUV, bUseFaceToward,
862872
vecFaceToward);
863-
else
873+
else if (stage == eRenderStage::PRE_FX)
864874
m_pMaterialLine3DBatcherPreGUI->AddLine3D(vecBegin, vecEnd, fWidth, ulColor, pMaterial, fU, fV, fSizeU, fSizeV, bRelativeUV, bFlipUV, bUseFaceToward,
865875
vecFaceToward);
876+
else
877+
m_pMaterialLine3DBatcherPostFX->AddLine3D(vecBegin, vecEnd, fWidth, ulColor, pMaterial, fU, fV, fSizeU, fSizeV, bRelativeUV, bFlipUV, bUseFaceToward,
878+
vecFaceToward);
866879
}
867880

868881
void CGraphics::DrawRectQueued(float fX, float fY, float fWidth, float fHeight, unsigned long ulColor, bool bPostGUI, bool bSubPixelPositioning)
@@ -939,7 +952,7 @@ void CGraphics::DrawPrimitiveQueued(std::vector<PrimitiveVertice>* pVecVertices,
939952
AddQueueItem(Item, bPostGUI);
940953
}
941954

942-
void CGraphics::DrawPrimitive3DQueued(std::vector<PrimitiveVertice>* pVecVertices, D3DPRIMITIVETYPE eType, bool bPostGUI)
955+
void CGraphics::DrawPrimitive3DQueued(std::vector<PrimitiveVertice>* pVecVertices, D3DPRIMITIVETYPE eType, eRenderStage stage)
943956
{
944957
// Prevent queuing when minimized
945958
if (g_pCore->IsWindowMinimized())
@@ -949,14 +962,16 @@ void CGraphics::DrawPrimitive3DQueued(std::vector<PrimitiveVertice>* pVecVertice
949962
}
950963

951964
// Add it to the queue
952-
if (bPostGUI && !CCore::GetSingleton().IsMenuVisible())
965+
if (stage == eRenderStage::POST_GUI && !CCore::GetSingleton().IsMenuVisible())
953966
m_pPrimitive3DBatcherPostGUI->AddPrimitive(eType, pVecVertices);
954-
else
967+
else if (stage == eRenderStage::PRE_FX)
955968
m_pPrimitive3DBatcherPreGUI->AddPrimitive(eType, pVecVertices);
969+
else
970+
m_pPrimitive3DBatcherPostFX->AddPrimitive(eType, pVecVertices);
956971
}
957972

958973
void CGraphics::DrawMaterialPrimitive3DQueued(std::vector<PrimitiveMaterialVertice>* pVecVertices, D3DPRIMITIVETYPE eType, CMaterialItem* pMaterial,
959-
bool bPostGUI)
974+
eRenderStage stage)
960975
{
961976
// Prevent queuing when minimized
962977
if (g_pCore->IsWindowMinimized())
@@ -972,10 +987,13 @@ void CGraphics::DrawMaterialPrimitive3DQueued(std::vector<PrimitiveMaterialVerti
972987
}
973988

974989
// Add it to the queue
975-
if (bPostGUI && !CCore::GetSingleton().IsMenuVisible())
990+
if (stage == eRenderStage::POST_GUI && !CCore::GetSingleton().IsMenuVisible())
976991
m_pMaterialPrimitive3DBatcherPostGUI->AddPrimitive(eType, pMaterial, pVecVertices);
977-
else
992+
else if (stage == eRenderStage::PRE_FX)
978993
m_pMaterialPrimitive3DBatcherPreGUI->AddPrimitive(eType, pMaterial, pVecVertices);
994+
else
995+
m_pMaterialPrimitive3DBatcherPostFX->AddPrimitive(eType, pMaterial, pVecVertices);
996+
979997
}
980998

981999
void CGraphics::DrawMaterialPrimitiveQueued(std::vector<PrimitiveMaterialVertice>* pVecVertices, D3DPRIMITIVETYPE eType, CMaterialItem* pMaterial,
@@ -1515,14 +1533,18 @@ void CGraphics::OnDeviceCreate(IDirect3DDevice9* pDevice)
15151533

15161534
m_pTileBatcher->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
15171535
m_pLine3DBatcherPreGUI->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
1536+
m_pLine3DBatcherPostFX->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
15181537
m_pLine3DBatcherPostGUI->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
15191538
m_pMaterialLine3DBatcherPreGUI->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
1539+
m_pMaterialLine3DBatcherPostFX->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
15201540
m_pMaterialLine3DBatcherPostGUI->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
15211541
m_pPrimitiveBatcher->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
15221542
m_pPrimitiveMaterialBatcher->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
15231543
m_pPrimitive3DBatcherPreGUI->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
1544+
m_pPrimitive3DBatcherPostFX->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
15241545
m_pPrimitive3DBatcherPostGUI->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
15251546
m_pMaterialPrimitive3DBatcherPreGUI->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
1547+
m_pMaterialPrimitive3DBatcherPostFX->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
15261548
m_pMaterialPrimitive3DBatcherPostGUI->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
15271549
m_pRenderItemManager->OnDeviceCreate(pDevice, GetViewportWidth(), GetViewportHeight());
15281550
m_pScreenGrabber->OnDeviceCreate(pDevice);
@@ -1612,6 +1634,12 @@ void CGraphics::DrawLine3DPreGUIQueue()
16121634
m_pMaterialLine3DBatcherPreGUI->Flush();
16131635
}
16141636

1637+
void CGraphics::DrawLine3DPostFXQueue(void)
1638+
{
1639+
m_pLine3DBatcherPostFX->Flush();
1640+
m_pMaterialLine3DBatcherPostFX->Flush();
1641+
}
1642+
16151643
void CGraphics::DrawPrimitive3DPreGUIQueue(void)
16161644
{
16171645
m_pPrimitive3DBatcherPreGUI->Flush();
@@ -1623,6 +1651,12 @@ bool CGraphics::HasLine3DPreGUIQueueItems(void)
16231651
return m_pLine3DBatcherPreGUI->HasItems() || m_pMaterialLine3DBatcherPreGUI->HasItems();
16241652
}
16251653

1654+
void CGraphics::DrawPrimitive3DPostFXQueue(void)
1655+
{
1656+
m_pPrimitive3DBatcherPostFX->Flush();
1657+
m_pMaterialPrimitive3DBatcherPostFX->Flush();
1658+
}
1659+
16261660
bool CGraphics::HasPrimitive3DPreGUIQueueItems(void)
16271661
{
16281662
return m_pMaterialPrimitive3DBatcherPreGUI->HasItems() || m_pPrimitive3DBatcherPreGUI->HasItems();
@@ -2519,6 +2553,6 @@ void CGraphics::DrawWiredSphere(CVector vecPosition, float fRadius, SColor color
25192553
{
25202554
const CVector& vecBegin = model.vertexList[i] * fRadius + vecPosition;
25212555
const CVector& vecEnd = model.vertexList[i + 1] * fRadius + vecPosition;
2522-
DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, false);
2556+
DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, eRenderStage::POST_FX);
25232557
}
25242558
}

Client/core/Graphics/CGraphics.h

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ class CGraphics : public CGraphicsInterface, public CSingleton<CGraphics>
135135
// Queued up drawing funcs
136136
void DrawLineQueued(float fX1, float fY1, float fX2, float fY2, float fWidth, unsigned long ulColor, bool bPostGUI);
137137

138-
void DrawLine3DQueued(const CVector& vecBegin, const CVector& vecEnd, float fWidth, unsigned long ulColor, bool bPostGUI);
138+
void DrawLine3DQueued(const CVector& vecBegin, const CVector& vecEnd, float fWidth, unsigned long ulColor, eRenderStage stage = eRenderStage::PRE_FX);
139139

140140
void DrawMaterialLine3DQueued(const CVector& vecBegin, const CVector& vecEnd, float fWidth, unsigned long ulColor, CMaterialItem* pMaterial, float fU = 0,
141141
float fV = 0, float fSizeU = 1, float fSizeV = 1, bool bRelativeUV = true, bool bFlipUV = false, bool bUseFaceToward = false,
142-
const CVector& vecFaceToward = CVector(), bool bPostGUI = false) override;
142+
const CVector& vecFaceToward = CVector(), eRenderStage stage = eRenderStage::PRE_FX) override;
143143

144144
void DrawRectQueued(float fX, float fY, float fWidth, float fHeight, unsigned long ulColor, bool bPostGUI, bool bSubPixelPositioning = false);
145145

@@ -153,8 +153,8 @@ class CGraphics : public CGraphicsInterface, public CSingleton<CGraphics>
153153
void DrawPrimitiveQueued(std::vector<PrimitiveVertice>* pVecVertices, D3DPRIMITIVETYPE eType, bool bPostGUI = false);
154154
void DrawMaterialPrimitiveQueued(std::vector<PrimitiveMaterialVertice>* vertices, D3DPRIMITIVETYPE type, CMaterialItem* pMaterial, bool bPostGUI);
155155

156-
void DrawPrimitive3DQueued(std::vector<PrimitiveVertice>* pVecVertices, D3DPRIMITIVETYPE eType, bool bPostGUI);
157-
void DrawMaterialPrimitive3DQueued(std::vector<PrimitiveMaterialVertice>* pVecVertices, D3DPRIMITIVETYPE eType, CMaterialItem* pMaterial, bool bPostGUI);
156+
void DrawPrimitive3DQueued(std::vector<PrimitiveVertice>* pVecVertices, D3DPRIMITIVETYPE eType, eRenderStage stage = eRenderStage::PRE_FX);
157+
void DrawMaterialPrimitive3DQueued(std::vector<PrimitiveMaterialVertice>* pVecVertices, D3DPRIMITIVETYPE eType, CMaterialItem* pMaterial, eRenderStage stage = eRenderStage::PRE_FX);
158158

159159
void DrawCircleQueued(float fX, float fY, float fRadius, float fStartAngle, float fStopAngle, unsigned long ulColor, unsigned long ulColorCenter,
160160
short siSegments, float fRatio, bool bPostGUI);
@@ -188,7 +188,9 @@ class CGraphics : public CGraphicsInterface, public CSingleton<CGraphics>
188188
void DrawPreGUIQueue(void);
189189
void DrawPostGUIQueue(void);
190190
void DrawLine3DPreGUIQueue(void);
191+
void DrawLine3DPostFXQueue(void);
191192
bool HasLine3DPreGUIQueueItems(void);
193+
void DrawPrimitive3DPostFXQueue(void);
192194
void DrawPrimitive3DPreGUIQueue(void);
193195
bool HasPrimitive3DPreGUIQueueItems(void);
194196

@@ -226,14 +228,18 @@ class CGraphics : public CGraphicsInterface, public CSingleton<CGraphics>
226228
CPixelsManagerInterface* m_pPixelsManager = nullptr;
227229
CTileBatcher* m_pTileBatcher = nullptr;
228230
CLine3DBatcher* m_pLine3DBatcherPreGUI = nullptr;
231+
CLine3DBatcher* m_pLine3DBatcherPostFX = nullptr;
229232
CLine3DBatcher* m_pLine3DBatcherPostGUI = nullptr;
230233
CMaterialLine3DBatcher* m_pMaterialLine3DBatcherPreGUI = nullptr;
234+
CMaterialLine3DBatcher* m_pMaterialLine3DBatcherPostFX = nullptr;
231235
CMaterialLine3DBatcher* m_pMaterialLine3DBatcherPostGUI = nullptr;
232236
CPrimitiveBatcher* m_pPrimitiveBatcher = nullptr;
233237
CPrimitiveMaterialBatcher* m_pPrimitiveMaterialBatcher = nullptr;
234238
CPrimitive3DBatcher* m_pPrimitive3DBatcherPreGUI = nullptr;
235-
CPrimitive3DBatcher* m_pPrimitive3DBatcherPostGUI = nullptr;
239+
CPrimitive3DBatcher* m_pPrimitive3DBatcherPostFX = nullptr;
240+
CPrimitive3DBatcher* m_pPrimitive3DBatcherPostGUI = nullptr;
236241
CMaterialPrimitive3DBatcher* m_pMaterialPrimitive3DBatcherPreGUI = nullptr;
242+
CMaterialPrimitive3DBatcher* m_pMaterialPrimitive3DBatcherPostFX = nullptr;
237243
CMaterialPrimitive3DBatcher* m_pMaterialPrimitive3DBatcherPostGUI = nullptr;
238244
CAspectRatioConverter* m_pAspectRatioConverter = nullptr;
239245

Client/mods/deathmatch/logic/CClientColCircle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void CClientColCircle::DebugRender(const CVector& vecPosition, float fDrawRadius
7979
{
8080
CVector vecBegin = vertexList[i] * vecMult + vecAdd;
8181
CVector vecEnd = vertexList[(i + 1) % uiNumPoints] * vecMult + vecAdd;
82-
pGraphics->DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, false);
82+
pGraphics->DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, eRenderStage::POST_FX);
8383
}
8484
}
8585
}
@@ -94,7 +94,7 @@ void CClientColCircle::DebugRender(const CVector& vecPosition, float fDrawRadius
9494
{
9595
CVector vecBegin = vertexList[i] * vecMultB + vecAdd;
9696
CVector vecEnd = vertexList[i] * vecMultT + vecAdd;
97-
pGraphics->DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, false);
97+
pGraphics->DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, eRenderStage::POST_FX);
9898
}
9999
}
100100
}

Client/mods/deathmatch/logic/CClientColCuboid.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void CClientColCuboid::DebugRender(const CVector& vecPosition, float fDrawRadius
7070
{
7171
const CVector& vecBegin = cornerPoints[i] * vecMult + vecAdd;
7272
const CVector& vecEnd = cornerPoints[(i + 1) % 4] * vecMult + vecAdd;
73-
pGraphics->DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, false);
73+
pGraphics->DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, eRenderStage::POST_FX);
7474
}
7575
}
7676
}
@@ -89,7 +89,7 @@ void CClientColCuboid::DebugRender(const CVector& vecPosition, float fDrawRadius
8989
{
9090
const CVector& vecBegin = cornerPoints[i] * vecMult + vecAdd;
9191
const CVector& vecEnd = cornerPoints[(i + 1) % 4] * vecMult + vecAdd;
92-
pGraphics->DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, false);
92+
pGraphics->DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, eRenderStage::POST_FX);
9393
}
9494
}
9595
}
@@ -108,7 +108,7 @@ void CClientColCuboid::DebugRender(const CVector& vecPosition, float fDrawRadius
108108
{
109109
const CVector& vecBegin = cornerPoints[i] * vecMult + vecAdd;
110110
const CVector& vecEnd = cornerPoints[(i + 1) % 4] * vecMult + vecAdd;
111-
pGraphics->DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, false);
111+
pGraphics->DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, eRenderStage::POST_FX);
112112
}
113113
}
114114
}

Client/mods/deathmatch/logic/CClientColPolygon.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ void CClientColPolygon::DebugRender(const CVector& vecPosition, float fDrawRadiu
205205

206206
CVector vecBegin(vecPointBegin.fX, vecPointBegin.fY, fZ);
207207
CVector vecEnd(vecPointEnd.fX, vecPointEnd.fY, fZ);
208-
pGraphics->DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, false);
208+
pGraphics->DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, eRenderStage::POST_FX);
209209
}
210210
}
211211
}
@@ -219,7 +219,7 @@ void CClientColPolygon::DebugRender(const CVector& vecPosition, float fDrawRadiu
219219

220220
CVector vecBegin(vecPoint.fX, vecPoint.fY, std::max(vecPosition.fZ - fDrawRadius, m_fFloor));
221221
CVector vecEnd(vecPoint.fX, vecPoint.fY, std::min(vecPosition.fZ + fDrawRadius, m_fCeil));
222-
pGraphics->DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, false);
222+
pGraphics->DrawLine3DQueued(vecBegin, vecEnd, fLineWidth, color, eRenderStage::POST_FX);
223223
}
224224
}
225225

@@ -231,10 +231,10 @@ void CClientColPolygon::DebugRender(const CVector& vecPosition, float fDrawRadiu
231231

232232
CVector vecFloorBegin(vecPointBegin.fX, vecPointBegin.fY, m_fFloor);
233233
CVector vecFloorEnd(vecPointEnd.fX, vecPointEnd.fY, m_fFloor);
234-
pGraphics->DrawLine3DQueued(vecFloorBegin, vecFloorEnd, fLineWidth, color, false);
234+
pGraphics->DrawLine3DQueued(vecFloorBegin, vecFloorEnd, fLineWidth, color, eRenderStage::POST_FX);
235235

236236
CVector vecCeilBegin(vecPointBegin.fX, vecPointBegin.fY, m_fCeil);
237237
CVector vecCeilEnd(vecPointEnd.fX, vecPointEnd.fY, m_fCeil);
238-
pGraphics->DrawLine3DQueued(vecCeilBegin, vecCeilEnd, fLineWidth, color, false);
238+
pGraphics->DrawLine3DQueued(vecCeilBegin, vecCeilEnd, fLineWidth, color, eRenderStage::POST_FX);
239239
}
240240
}

0 commit comments

Comments
 (0)