# Render unit silhouettes when behind buildings.

Fixes #144.
Start using stencil buffer.
Simplify materials a little.

This was SVN commit r9076.
This commit is contained in:
Ykkrosh
2011-03-18 16:57:54 +00:00
parent d49994a0b4
commit d805e764c5
20 changed files with 285 additions and 114 deletions
+1 -1
View File
@@ -112,8 +112,8 @@ bool CObjectEntry::BuildVariation(const std::vector<std::set<CStr> >& selections
delete m_Model;
m_Model = model;
model->SetMaterial(g_MaterialManager.LoadMaterial(m_Base->m_Material));
model->GetMaterial().SetTextureColor(m_Color);
model->InitModel(modeldef);
model->SetPlayerColor(m_Color);
CTextureProperties textureProps(m_TextureName);
textureProps.SetWrap(GL_CLAMP_TO_EDGE);