Code: Select all
//add moon
node = engine->scene->addSphereSceneNode(3.0f, 16, 0, -1, vector3df(0,0,SATELLITE_STARTING_RADIUS + SATELLITE_RADIUS_MULTIPLE));
node->setMaterialTexture(0, engine->video->getTexture("moon.jpg"));
node->setMaterialFlag(EMF_LIGHTING, false);
node->getMaterial(0).AmbientColor = SColor(0,255,0,0);
The moon stays the default color, regardless of the AmbientColor of the material. Anyone know how I can turn the moon red?