Can not change material color

Why this color setting doesn’t work?

ofFloatColor redf(1.0f, 0.0f, 0.0f, 1.0f);
assimpmodel.getMaterialForMesh(0).setAmbientColor(redf);

ofLogNotice("testApp.cpp") << "redf: " << redf;
ofLogNotice("testApp.cpp") << "BOX01 Ambient Color: " << assimpmodel.getMaterialForMesh(0).getAmbientColor();

while the output is:

redf: 1, 0, 0, 1
BOX01 Ambient Color: 0.6, 0.6, 0.6, 1

Do I miss something?

1 Like