Skip to content

Commit

Permalink
#5584: Use the wire shader instead of the colour shader, we don't nee…
Browse files Browse the repository at this point in the history
…d to render models twice
  • Loading branch information
codereader committed Jan 15, 2022
1 parent e1601a8 commit 6302eb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radiantcore/model/StaticModelNode.cpp
Expand Up @@ -188,10 +188,10 @@ void StaticModelNode::attachToShaders()
auto shader = renderSystem->capture(surface->getSurface().getActiveMaterial());
surface->attachToShader(shader);

// For orthoview rendering we need the entity's colour shader
// For orthoview rendering we need the entity's wireframe shader
if (_renderEntity)
{
surface->attachToShader(_renderEntity->getColourShader());
surface->attachToShader(_renderEntity->getWireShader());
}
}

Expand Down

0 comments on commit 6302eb3

Please sign in to comment.