Skip to content

Commit

Permalink
#5532: Parser is storing the cubeMap map expression to the shader lay…
Browse files Browse the repository at this point in the history
…er, rather than ignoring it
  • Loading branch information
codereader committed Feb 23, 2021
1 parent 137dc91 commit 37c9005
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radiantcore/shaders/ShaderTemplate.cpp
Expand Up @@ -586,7 +586,8 @@ bool ShaderTemplate::parseBlendMaps(parser::DefTokeniser& tokeniser, const std::
else if (token == "cubemap")
{
// Parse the cubemap expression, but don't do anything with it for now
MapExpression::createForToken(tokeniser);
_currentLayer->setBindableTexture(MapExpression::createForToken(tokeniser));
_currentLayer->setCubeMapMode(ShaderLayer::CUBE_MAP_OBJECT);
}
else if (token == "videomap")
{
Expand Down

0 comments on commit 37c9005

Please sign in to comment.