diff options
Diffstat (limited to 'src/sky.cpp')
-rw-r--r-- | src/sky.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sky.cpp b/src/sky.cpp index ac8e2cbf6..e40602914 100644 --- a/src/sky.cpp +++ b/src/sky.cpp @@ -47,14 +47,14 @@ Sky::Sky(scene::ISceneNode* parent, scene::ISceneManager* mgr, s32 id, m_materials[1].MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL; m_materials[2] = mat; - m_materials[2].setTexture(0, tsrc->getTexture("sunrisebg.png")); + m_materials[2].setTexture(0, tsrc->getTextureForMesh("sunrisebg.png")); m_materials[2].MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL; //m_materials[2].MaterialType = video::EMT_TRANSPARENT_ADD_COLOR; m_sun_texture = tsrc->isKnownSourceImage("sun.png") ? - tsrc->getTexture("sun.png") : NULL; + tsrc->getTextureForMesh("sun.png") : NULL; m_moon_texture = tsrc->isKnownSourceImage("moon.png") ? - tsrc->getTexture("moon.png") : NULL; + tsrc->getTextureForMesh("moon.png") : NULL; m_sun_tonemap = tsrc->isKnownSourceImage("sun_tonemap.png") ? tsrc->getTexture("sun_tonemap.png") : NULL; m_moon_tonemap = tsrc->isKnownSourceImage("moon_tonemap.png") ? |