irr::video::SMaterial * mat = sky_node->getMaterial(0);
///change mat type and any settings you need
mat->MaterialType = YourMaterialType;
mat->setTexture(0, mgr->getVideoDriver()->getTexture(
getTexturePath("glow.png").c_str()));
mat->setTexture(1, mgr->getVideoDriver()->getTexture(
getTexturePath("sky.png").c_str()));
mat->setTexture(2, mgr->getVideoDriver()->getTexture(
getTexturePath("moon.png").c_str()));
mat->setTexture(3, mgr->getVideoDriver()->getTexture(
getTexturePath("stars.png").c_str()));
aXJyOjp2aWRlbzo6U01hdGVyaWFsICogbWF0ID0gc2t5X25vZGUtPmdldE1hdGVyaWFsKDApOwoKLy8vY2hhbmdlIG1hdCB0eXBlIGFuZCBhbnkgc2V0dGluZ3MgeW91IG5lZWQKbWF0LT5NYXRlcmlhbFR5cGUgPSBZb3VyTWF0ZXJpYWxUeXBlOwoKbWF0LT5zZXRUZXh0dXJlKDAsIG1nci0+Z2V0VmlkZW9Ecml2ZXIoKS0+Z2V0VGV4dHVyZSgKICAgICAgICAgICAgICAgIGdldFRleHR1cmVQYXRoKCJnbG93LnBuZyIpLmNfc3RyKCkpKTsKCm1hdC0+c2V0VGV4dHVyZSgxLCBtZ3ItPmdldFZpZGVvRHJpdmVyKCktPmdldFRleHR1cmUoCiAgICAgICAgICAgICAgICBnZXRUZXh0dXJlUGF0aCgic2t5LnBuZyIpLmNfc3RyKCkpKTsKICAgICAgICAgICAgICAgIAptYXQtPnNldFRleHR1cmUoMiwgbWdyLT5nZXRWaWRlb0RyaXZlcigpLT5nZXRUZXh0dXJlKAogICAgICAgICAgICAgICAgZ2V0VGV4dHVyZVBhdGgoIm1vb24ucG5nIikuY19zdHIoKSkpOwoKbWF0LT5zZXRUZXh0dXJlKDMsIG1nci0+Z2V0VmlkZW9Ecml2ZXIoKS0+Z2V0VGV4dHVyZSgKICAgICAgICAgICAgICAgIGdldFRleHR1cmVQYXRoKCJzdGFycy5wbmciKS5jX3N0cigpKSk7