It's horrible to fail on such a ridiculous problem.
I have 1 MeshSceneNode that has some material properties specified, including SpecularColor. It works.
Then, I draw some triangles with this code :
Code: Select all
SMaterial mate;
mate.SpecularColor = SColor(0x0);
driver->setMaterial(mate);
driver->drawIndexedTriangleList(
&gbverts[0], nverts,
&gbindices[0], ntris);
All the others flags and material properties are ok, except SpecularColor.
If I write :
Code: Select all
SMaterial mate;
mate.SpecularColor = SColor(0x0);
mate.Wireframe = true;
mate.DiffuseColor = SColor(0xff00ff00);
driver->setMaterial(mate);
Does someone know what is wrong here ?
I'm using the 1.4 release