Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-09-26 11:17:56 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-09-26 11:20:04 +0300
commit0a588aef732e7a3a8411f660d77b406528b82f09 (patch)
tree52db2e3c8f342963d76ecb76998be3f2336e179e /io_scene_fbx/import_fbx.py
parentb192f64fc3d8a617d4ea604019f8184e7aba3625 (diff)
FBX import: Add comment about how to handle texture clamping.
Diffstat (limited to 'io_scene_fbx/import_fbx.py')
-rw-r--r--io_scene_fbx/import_fbx.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 444ebbf9..8dd60543 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -3021,6 +3021,21 @@ def load(operator, context, filepath="",
"clamp": tex_map[3],
}
+ """
+ TODO for clamp:
+ # awkward conversion UV clamping to minmax
+ node_map.min = (0.0, 0.0, 0.0)
+ node_map.max = (1.0, 1.0, 1.0)
+
+ if clamp in {(False, False), (True, True)}:
+ node_map.use_min = node_map.use_max = clamp[0]
+ else:
+ node_map.use_min = node_map.use_max = True
+ # use bool as index
+ node_map.min[not clamp[0]] = -1000000000.0
+ node_map.max[not clamp[0]] = 1000000000.0
+ """
+
if lnk_type in {b'DiffuseColor', b'3dsMax|maps|texmap_diffuse'}:
ma_wrap.diffuse_image_set(image)
if use_mapping: