diff options
author | Aaron Suen <warr1024@gmail.com> | 2015-03-30 20:04:19 -0400 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-03-31 16:56:33 +1000 |
commit | db32e6c5aa3bf79c23fa51f9297440fcaf09215d (patch) | |
tree | 7d840ddc94da602c8fda5009feedbec06f91ac1a /src/sky.cpp | |
parent | 862d4ea328ed30d79f4e28eb9119e21e275295d9 (diff) | |
download | minetest-db32e6c5aa3bf79c23fa51f9297440fcaf09215d.tar.gz minetest-db32e6c5aa3bf79c23fa51f9297440fcaf09215d.tar.bz2 minetest-db32e6c5aa3bf79c23fa51f9297440fcaf09215d.zip |
Move texture_min_size even further down the pipe. Now, textures are JIT-upscaled using an image transformation, right at the time they're added to a mesh or particle; images used in 2D elements are left unscaled. This should fix any remaining issues with HUD elements.
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") ? |