浏览代码

BatchedMesh: Fix failure with MeshBasicMaterial (#27074)

* Fix BatchedMesh failing with MeshBasicMaterial

* Fix indentation
Garrett Johnson 1 年之前
父节点
当前提交
e8c33fd677
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      examples/jsm/objects/BatchedMesh.js

+ 5 - 1
examples/jsm/objects/BatchedMesh.js

@@ -173,10 +173,14 @@ class BatchedMesh extends Mesh {
 					'#include <skinning_pars_vertex>\n'
 						+ batchingParsVertex
 				)
+				.replace(
+					'#include <uv_vertex>',
+					'#include <uv_vertex>\n'
+						+ batchingbaseVertex
+				)
 				.replace(
 					'#include <skinnormal_vertex>',
 					'#include <skinnormal_vertex>\n'
-						+ batchingbaseVertex
 						+ batchingnormalVertex
 				)
 				.replace(