summaryrefslogtreecommitdiff
path: root/editor/import
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-04-29 21:51:37 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-04-29 21:52:21 -0300
commit6244b9e2e1a7e675452fd574b5007dd25ec73c69 (patch)
tree5b6ce93967de2df8878cab85fccc91792a590571 /editor/import
parentdc7ed4b547c464923a622dc58312c0f9df77177a (diff)
Add option to renormalize mipmaps when generating them for normalmaps.
Reduces some aliasing.
Diffstat (limited to 'editor/import')
-rw-r--r--editor/import/resource_importer_texture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/resource_importer_texture.cpp b/editor/import/resource_importer_texture.cpp
index 8119b84b7e..beaa8d9600 100644
--- a/editor/import/resource_importer_texture.cpp
+++ b/editor/import/resource_importer_texture.cpp
@@ -295,7 +295,7 @@ void ResourceImporterTexture::_save_stex(const Ref<Image> &p_image, const String
case COMPRESS_VIDEO_RAM: {
Ref<Image> image = p_image->duplicate();
- image->generate_mipmaps();
+ image->generate_mipmaps(p_force_normal);
if (p_force_rgbe && image->get_format() >= Image::FORMAT_R8 && image->get_format() <= Image::FORMAT_RGBE9995) {
image->convert(Image::FORMAT_RGBE9995);