Skip to content

Commit

Permalink
#6081: Adjust unit test now that parm0 to parm3 evaluate to 1 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Sep 4, 2022
1 parent 41bc124 commit 1626bdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Materials.cpp
Expand Up @@ -645,7 +645,8 @@ TEST_F(MaterialsTest, MaterialParserStageTranslate)
EXPECT_EQ(stage->getTransformations().at(0).expression2->getExpressionString(), "parm3 + 5");

stage->evaluateExpressions(1000);
expectNear(stage->getTextureTransform(), Matrix4::getTranslation(Vector3(3.0, 5.0, 0)));
// parm3 is the alpha parm which evaluates to 1 by default
expectNear(stage->getTextureTransform(), Matrix4::getTranslation(Vector3(3.0, 6.0, 0)));

material = GlobalMaterialManager().getMaterial("textures/parsertest/transform/translation2");
stage = material->getLayer(0);
Expand Down

0 comments on commit 1626bdf

Please sign in to comment.