Skip to content

Commit

Permalink
#6052: Don't add "_white" map expressions for newly created blend lay…
Browse files Browse the repository at this point in the history
…ers, not all of them need such an expression.
  • Loading branch information
codereader committed Aug 5, 2022
1 parent c94caf4 commit a7963fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radiantcore/shaders/ShaderTemplate.cpp
Expand Up @@ -1383,10 +1383,10 @@ std::size_t ShaderTemplate::addLayer(IShaderLayer::Type type)
case IShaderLayer::SPECULAR:
map = MapExpression::createForString("_black");
break;
case IShaderLayer::DIFFUSE:
case IShaderLayer::DIFFUSE:
map = MapExpression::createForString("_white");
case IShaderLayer::BLEND:
default:
map = MapExpression::createForString("_white");
break;
}

Expand Down

0 comments on commit a7963fe

Please sign in to comment.