summaryrefslogtreecommitdiff
path: root/user/assimp/restore-pbrmaterial-glossy-macro.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/assimp/restore-pbrmaterial-glossy-macro.patch')
-rw-r--r--user/assimp/restore-pbrmaterial-glossy-macro.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/assimp/restore-pbrmaterial-glossy-macro.patch b/user/assimp/restore-pbrmaterial-glossy-macro.patch
new file mode 100644
index 000000000..b1e634c3e
--- /dev/null
+++ b/user/assimp/restore-pbrmaterial-glossy-macro.patch
@@ -0,0 +1,12 @@
+diff -ur a/include/assimp/pbrmaterial.h b/include/assimp/pbrmaterial.h
+--- a/include/assimp/pbrmaterial.h 2022-02-03 21:09:18.050000000 +0000
++++ b/include/assimp/pbrmaterial.h 2022-02-03 21:09:44.930000000 +0000
+@@ -61,7 +61,7 @@
+ #define AI_MATKEY_GLTF_PBRMETALLICROUGHNESS_METALLIC_FACTOR AI_MATKEY_METALLIC_FACTOR
+ #define AI_MATKEY_GLTF_PBRMETALLICROUGHNESS_ROUGHNESS_FACTOR AI_MATKEY_ROUGHNESS_FACTOR
+
+-//#define AI_MATKEY_GLTF_PBRSPECULARGLOSSINESS "$mat.gltf.pbrSpecularGlossiness", 0, 0
++#define AI_MATKEY_GLTF_PBRSPECULARGLOSSINESS "$mat.gltf.pbrSpecularGlossiness", 0, 0
+ #define AI_MATKEY_GLTF_PBRSPECULARGLOSSINESS_GLOSSINESS_FACTOR AI_MATKEY_GLOSSINESS_FACTOR
+
+ // Use AI_MATKEY_SHADING_MODEL == aiShadingMode_Unlit instead