Improve swizzle of splatting

This commit is contained in:
vlj
2014-09-21 03:59:03 +02:00
parent 5c0c158244
commit 98ca75c34d
2 changed files with 2 additions and 2 deletions

View File

@@ -749,7 +749,7 @@ void Material::setMaterialProperties(video::SMaterial *m, scene::IMeshBuffer* m
tex = irr_driver->getTexture(m_splatting_texture_4);
}
m->setTexture(5, tex);
m->setTexture(6, glossytex);
// m->setTexture(6, glossytex);
// Material and shaders
m->MaterialType = irr_driver->getShader(ES_SPLATTING);

View File

@@ -213,7 +213,7 @@ struct SplattingMat
};
const std::vector<size_t> SplattingMat::FirstPassTextures = { 1 };
const std::vector<size_t> SplattingMat::SecondPassTextures = { 1, 2, 3, 4, 0 };
const std::vector<size_t> SplattingMat::SecondPassTextures = { 2, 1, 3, 4, 5};
namespace RenderGeometry
{