Use the original spm uv texture 1 and 2 for compare in scene manager
Because for splatting it will have some duplicated entries Also remove never-working material code for splatting because of SP
This commit is contained in:
parent
45957af6f8
commit
8fa5ad46c9
@ -191,17 +191,7 @@ Material::Material(const XMLNode *node, bool deprecated)
|
|||||||
s = "solid";
|
s = "solid";
|
||||||
std::string normal_map_tex;
|
std::string normal_map_tex;
|
||||||
node->get("normal-map", &normal_map_tex);
|
node->get("normal-map", &normal_map_tex);
|
||||||
if (node->get("shader", &s))
|
if (!node->get("shader", &s))
|
||||||
{
|
|
||||||
if (s == "splatting")
|
|
||||||
{
|
|
||||||
node->get("splatting-texture-1", &m_sampler_path[2]);
|
|
||||||
node->get("splatting-texture-2", &m_sampler_path[3]);
|
|
||||||
node->get("splatting-texture-3", &m_sampler_path[4]);
|
|
||||||
node->get("splatting-texture-4", &m_sampler_path[5]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
// BACKWARS COMPATIBILITY, EVENTUALLY REMOVE
|
// BACKWARS COMPATIBILITY, EVENTUALLY REMOVE
|
||||||
|
|
||||||
@ -263,13 +253,6 @@ Material::Material(const XMLNode *node, bool deprecated)
|
|||||||
{
|
{
|
||||||
node->get("normal-map", &normal_map_tex);
|
node->get("normal-map", &normal_map_tex);
|
||||||
}
|
}
|
||||||
else if (s == "splatting")
|
|
||||||
{
|
|
||||||
node->get("splatting-texture-1", &m_sampler_path[2]);
|
|
||||||
node->get("splatting-texture-2", &m_sampler_path[3]);
|
|
||||||
node->get("splatting-texture-3", &m_sampler_path[4]);
|
|
||||||
node->get("splatting-texture-4", &m_sampler_path[5]);
|
|
||||||
}
|
|
||||||
else if (s == "none")
|
else if (s == "none")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -132,9 +132,9 @@ void SPMeshBuffer::uploadGLMesh()
|
|||||||
m_shaders[0]->isSrgbForTextureLayer(j),
|
m_shaders[0]->isSrgbForTextureLayer(j),
|
||||||
std::get<2>(m_stk_material[i])->getContainerId());
|
std::get<2>(m_stk_material[i])->getContainerId());
|
||||||
}
|
}
|
||||||
// Use .spm uv texture 1 and 2 for compare in scene manager
|
// Use the original spm uv texture 1 and 2 for compare in scene manager
|
||||||
m_tex_cmp[m_textures[i][0]->getPath() + m_textures[i][1]->getPath()] =
|
m_tex_cmp[std::get<2>(m_stk_material[i])->getSamplerPath(0) +
|
||||||
i;
|
std::get<2>(m_stk_material[i])->getSamplerPath(1)] = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool use_2_uv = std::get<2>(m_stk_material[0])->use2UV();
|
bool use_2_uv = std::get<2>(m_stk_material[0])->use2UV();
|
||||||
|
Loading…
Reference in New Issue
Block a user