diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-09-26 11:17:56 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-09-26 11:20:04 +0300 |
commit | 0a588aef732e7a3a8411f660d77b406528b82f09 (patch) | |
tree | 52db2e3c8f342963d76ecb76998be3f2336e179e | |
parent | b192f64fc3d8a617d4ea604019f8184e7aba3625 (diff) |
FBX import: Add comment about how to handle texture clamping.
-rw-r--r-- | io_scene_fbx/import_fbx.py | 15 |
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: |