From 6244b9e2e1a7e675452fd574b5007dd25ec73c69 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 29 Apr 2018 21:51:37 -0300 Subject: Add option to renormalize mipmaps when generating them for normalmaps. Reduces some aliasing. --- editor/import/resource_importer_texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/import') 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 &p_image, const String case COMPRESS_VIDEO_RAM: { Ref 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); -- cgit v1.2.3