Rename _nm to _Normal for normal map textures

This commit is contained in:
Benau 2018-01-15 12:37:57 +08:00
parent 9c2f91c11b
commit 681ef66d8d

View File

@ -676,7 +676,7 @@ void SPTexture::generateHQMipmap(void* in,
imMipmapCascade cascade;
imReduceOptions options;
imReduceSetOptions(&options,
m_path.find("_nm.") != std::string::npos ?
m_path.find("_Normal.") != std::string::npos ?
IM_REDUCE_FILTER_NORMALMAP: IM_REDUCE_FILTER_LINEAR/*filter*/,
2/*hopcount*/, 2.0f/*alpha*/, 1.0f/*amplifynormal*/,
0.0f/*normalsustainfactor*/);