mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
# 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user