fork download
  1. irr::video::SMaterial * mat = sky_node->getMaterial(0);
  2.  
  3. ///change mat type and any settings you need
  4. mat->MaterialType = YourMaterialType;
  5.  
  6. mat->setTexture(0, mgr->getVideoDriver()->getTexture(
  7. getTexturePath("glow.png").c_str()));
  8.  
  9. mat->setTexture(1, mgr->getVideoDriver()->getTexture(
  10. getTexturePath("sky.png").c_str()));
  11.  
  12. mat->setTexture(2, mgr->getVideoDriver()->getTexture(
  13. getTexturePath("moon.png").c_str()));
  14.  
  15. mat->setTexture(3, mgr->getVideoDriver()->getTexture(
  16. getTexturePath("stars.png").c_str()));
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty