浏览代码

specified material type (#25117)

WestLangley 2 年之前
父节点
当前提交
780bb1b492
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;