michal Posted May 12, 2021 Share Posted May 12, 2021 Hi , I was trying to set moon intensity through ig_manager->getSkyMap()->setMoonIntensity(intensity); , but it looks it is not working ( 2.14, 2.14.1) . In editor it is OK. How can I adjust intensity manually during day and night ? Thanks . Michal Link to comment
cash-metall Posted May 13, 2021 Share Posted May 13, 2021 Hello! i checked everything works as expected int AppSystemLogic::update() { if (App::getKeyState('p')) // p - increase { auto i = ig_manager->getSkyMap()->getMoonIntensity(); i += Game::getIFps() * 0.5; ig_manager->getSkyMap()->setMoonIntensity(i); } if (App::getKeyState('o')) // o - decrease { auto i = ig_manager->getSkyMap()->getMoonIntensity(); i -= Game::getIFps() * 0.5; ig_manager->getSkyMap()->setMoonIntensity(i); } return 1; } result: https://drive.google.com/file/d/1pkFHyIbhFXU9wJr4QJHsapVs4vCS-oMt/view?usp=sharing please check that there is a property celestial in the editor and there are correct links to nodes if it still doesn't work - please attach bin/log.txt Link to comment
Recommended Posts