The directionalLight->setPowerScale(5) runs, makes the light be stronger.
But i still seeing only the directional light, i atach the code:
Code: Select all
Light* directionalLight = this->sceneManager->createLight();
directionalLight->setType(Light::LT_DIRECTIONAL);
directionalLight->setDiffuseColour(ColourValue(0.4, 0.4, 0.4));
directionalLight->setSpecularColour(ColourValue(0.4, 0.1, 0.1));
directionalLight->setPowerScale(5);
SceneNode* directionalLightNode = this->sceneManager->getRootSceneNode()->createChildSceneNode();
directionalLightNode->attachObject(directionalLight);
directionalLightNode->setDirection(Vector3(1, -1, 0));
the point light that is not present in the render, neither with powerScale at 100, code:
Code: Select all
Light* pointLight = this->sceneManager->createLight();
pointLight->setType(Light::LT_POINT);
pointLight->setDiffuseColour(1, 1, 1);
pointLight->setSpecularColour(1, 1, 1);
pointLight->setPowerScale(500);
SceneNode* pointLightNode = this->sceneManager->getRootSceneNode()->createChildSceneNode();
pointLightNode->attachObject(pointLight);
pointLightNode->setPosition(Vector3(0, 200, 0));