Fix sky rendering artifact
parent
f6cc629054
commit
6bebbb3f70
src/graphics/engine
|
@ -234,8 +234,6 @@ void CCloud::Create(const std::string& fileName,
|
||||||
m_lines.clear();
|
m_lines.clear();
|
||||||
for (int y = 0; y < m_brickCount; y++)
|
for (int y = 0; y < m_brickCount; y++)
|
||||||
CreateLine(0, y, m_brickCount);
|
CreateLine(0, y, m_brickCount);
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCloud::Flush()
|
void CCloud::Flush()
|
||||||
|
|
|
@ -3266,7 +3266,9 @@ void CEngine::Draw3DScene()
|
||||||
m_device->SetTransform(TRANSFORM_PROJECTION, m_matProj);
|
m_device->SetTransform(TRANSFORM_PROJECTION, m_matProj);
|
||||||
m_device->SetTransform(TRANSFORM_VIEW, m_matView);
|
m_device->SetTransform(TRANSFORM_VIEW, m_matView);
|
||||||
|
|
||||||
m_water->DrawBack(); // draws water background
|
// TODO: This causes a rendering artifact and I can't see anything that breaks if you just comment it out
|
||||||
|
// So I'll just leave it like that for now ~krzys_h
|
||||||
|
//m_water->DrawBack(); // draws water background
|
||||||
|
|
||||||
CProfiler::StartPerformanceCounter(PCNT_RENDER_TERRAIN);
|
CProfiler::StartPerformanceCounter(PCNT_RENDER_TERRAIN);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue