Browse Source

RoughnessMipmapper: Restore fix for USDZExporter. (#22994)

Michael Herzog 3 years ago
parent
commit
56f9f3ccbd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/jsm/utils/RoughnessMipmapper.js

+ 1 - 0
examples/jsm/utils/RoughnessMipmapper.js

@@ -87,6 +87,7 @@ class RoughnessMipmapper {
 		material.roughnessMap.repeat.copy( roughnessMap.repeat );
 		material.roughnessMap.center.copy( roughnessMap.center );
 		material.roughnessMap.rotation = roughnessMap.rotation;
+		material.roughnessMap.image = roughnessMap.image; // required for USDZExporter, see #22741
 
 		material.roughnessMap.matrixAutoUpdate = roughnessMap.matrixAutoUpdate;
 		material.roughnessMap.matrix.copy( roughnessMap.matrix );