Explorar el Código

specified material type (#25117)

WestLangley hace 2 años
padre
commit
780bb1b492
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      examples/jsm/loaders/MMDLoader.js

+ 2 - 0
examples/jsm/loaders/MMDLoader.js

@@ -2076,6 +2076,8 @@ class MMDToonMaterial extends ShaderMaterial {
 
 		this.isMMDToonMaterial = true;
 
+		this.type = 'MMDToonMaterial';
+
 		this._matcapCombine = AddOperation;
 		this.emissiveIntensity = 1.0;
 		this.normalMapType = TangentSpaceNormalMap;