Ensure, if a texture meant for a normal map is imported and size limit exists, that it's renormalized after resize.
This commit is contained in:
@@ -395,6 +395,10 @@ Error ResourceImporterTexture::import(const String &p_source_file, const String
|
||||
|
||||
image->resize(new_width, new_height, Image::INTERPOLATE_CUBIC);
|
||||
}
|
||||
|
||||
if (normal) {
|
||||
image->normalize();
|
||||
}
|
||||
}
|
||||
|
||||
if (fix_alpha_border) {
|
||||
|
||||
Reference in New Issue
Block a user