diff options
| author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2025-07-14 17:21:17 +0300 |
|---|---|---|
| committer | Andrey Lihatskiy <118752495+marchcat@users.noreply.github.com> | 2025-07-14 15:45:53 +0000 |
| commit | d033bbacf0d38079c1879acd04e54e341e78146e (patch) | |
| tree | 1dfd3f3a0b8fc645e3fc6d541e21ab4bc850ad94 /indra/newview/gltf/llgltfloader.h | |
| parent | 63134f79434481a450a146eae76f90a9f86091a4 (diff) | |
#4204 Refactor material name and texture handling in GLTF loader
Diffstat (limited to 'indra/newview/gltf/llgltfloader.h')
| -rw-r--r-- | indra/newview/gltf/llgltfloader.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/gltf/llgltfloader.h b/indra/newview/gltf/llgltfloader.h index b4c6e0c66c..46506cdf50 100644 --- a/indra/newview/gltf/llgltfloader.h +++ b/indra/newview/gltf/llgltfloader.h @@ -140,6 +140,8 @@ private: void processNodeHierarchy(S32 node_idx, std::map<std::string, S32>& mesh_name_counts, U32 submodel_limit, const LLVolumeParams& volume_params); bool addJointToModelSkin(LLMeshSkinInfo& skin_info, S32 gltf_skin_idx, size_t gltf_joint_idx); LLImportMaterial processMaterial(S32 material_index); + std::string processTexture(S32 texture_index, const std::string& texture_type, const std::string& material_name); + std::string generateMaterialName(S32 material_index, S32 fallback_index = -1); bool populateModelFromMesh(LLModel* pModel, const std::string& base_name, const LL::GLTF::Mesh &mesh, const LL::GLTF::Node &node, material_map& mats); void populateJointsFromSkin(S32 skin_idx); void populateJointGroups(); |
