소스 검색

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(