mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-27 20:04:55 +00:00
Fix silhouettes being displayed for some models that always stick into the ground
This was SVN commit r9117.
This commit is contained in:
@@ -1218,7 +1218,13 @@ void CRenderer::RenderSilhouettes()
|
||||
|
||||
{
|
||||
PROFILE("render patches");
|
||||
|
||||
// To prevent units displaying silhouettes when parts of their model
|
||||
// protrude into the ground, only occlude with the back faces of the
|
||||
// terrain (so silhouettes will still display when behind hills)
|
||||
glCullFace(GL_FRONT);
|
||||
m->terrainRenderer->RenderPatches();
|
||||
glCullFace(GL_BACK);
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user