Explorar o código

BatchedMesh: Fix failure with MeshBasicMaterial (#27074)

* Fix BatchedMesh failing with MeshBasicMaterial

* Fix indentation
Garrett Johnson hai 1 ano
pai
achega
e8c33fd677
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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'
 					'#include <skinning_pars_vertex>\n'
 						+ batchingParsVertex
 						+ batchingParsVertex
 				)
 				)
+				.replace(
+					'#include <uv_vertex>',
+					'#include <uv_vertex>\n'
+						+ batchingbaseVertex
+				)
 				.replace(
 				.replace(
 					'#include <skinnormal_vertex>',
 					'#include <skinnormal_vertex>',
 					'#include <skinnormal_vertex>\n'
 					'#include <skinnormal_vertex>\n'
-						+ batchingbaseVertex
 						+ batchingnormalVertex
 						+ batchingnormalVertex
 				)
 				)
 				.replace(
 				.replace(