Skip to content

Commit

Permalink
Added U3M
Browse files Browse the repository at this point in the history
  • Loading branch information
UX3D-nopper committed Mar 2, 2022
1 parent 03c2a10 commit 33d5b38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Usage: `pbr2gltf2.exe folder [-m 1.0 -r 1.0 -n true -e true]`
* [https://cgbookcase.com/](https://cgbookcase.com/) Free PBR Textures
* [https://gametextures.com/](https://gametextures.com/) PBR Generic
* [https://sharetextures.com/](https://sharetextures.com/) Free PBR Textures
* [https://www.u3m.info/](https://www.u3m.info/) U3M – Unified 3D Material


## Import the generated glTF
Expand Down
12 changes: 8 additions & 4 deletions src/pbr2gltf2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ static const std::vector<std::string>& getBaseColorTokens()
"_color",
"_base_color",
"_basecolor",
"_base color"
"_base color",
"_base"
};

return tokens;
Expand All @@ -58,7 +59,8 @@ static const std::vector<std::string>& getBaseColorTokens()
static const std::vector<std::string>& getAlphaTokens()
{
static const std::vector<std::string> tokens = {
"_opacity"
"_opacity",
"_alpha"
};

return tokens;
Expand All @@ -67,7 +69,8 @@ static const std::vector<std::string>& getAlphaTokens()
static const std::vector<std::string>& getMetallicTokens()
{
static const std::vector<std::string> tokens = {
"_metallic"
"_metallic",
"_mtl"
};

return tokens;
Expand Down Expand Up @@ -97,7 +100,8 @@ static const std::vector<std::string>& getNormalTokens()
{
static const std::vector<std::string> tokens = {
"_normal",
"_nor"
"_nor",
"_nrm"
};

return tokens;
Expand Down

0 comments on commit 33d5b38

Please sign in to comment.