glTF exporter: Fix T83426: fix texture filtering
minFilter=LinearMipmapLinear for Linear filtering
This commit is contained in:
parent
c5a84e2e1a
commit
9ff0d983ee
Notes:
blender-bot
2023-02-14 18:44:34 +01:00
Referenced by issue #83426, Blender GLTF Exporter - Missing texture filtering
|
@ -15,7 +15,7 @@
|
|||
bl_info = {
|
||||
'name': 'glTF 2.0 format',
|
||||
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
|
||||
"version": (1, 5, 7),
|
||||
"version": (1, 5, 8),
|
||||
'blender': (2, 91, 0),
|
||||
'location': 'File > Import-Export',
|
||||
'description': 'Import-Export as glTF 2.0',
|
||||
|
|
|
@ -76,7 +76,7 @@ def __gather_mag_filter(blender_shader_node, export_settings):
|
|||
def __gather_min_filter(blender_shader_node, export_settings):
|
||||
if blender_shader_node.interpolation == 'Closest':
|
||||
return TextureFilter.NearestMipmapNearest
|
||||
return TextureFilter.NearestMipmapLinear
|
||||
return TextureFilter.LinearMipmapLinear
|
||||
|
||||
|
||||
def __gather_name(blender_shader_node, export_settings):
|
||||
|
|
Loading…
Reference in New Issue