Sfoglia il codice sorgente

Merge pull request #19125 from frading/remove_VertexColor_from_imports

remove VertexColor imports from MaterialHandler and TubePainter
Mr.doob 5 anni fa
parent
commit
da375f6551

+ 2 - 3
examples/jsm/loaders/obj2/shared/MaterialHandler.js

@@ -7,8 +7,7 @@ import {
 	LineBasicMaterial,
 	MaterialLoader,
 	MeshStandardMaterial,
-	PointsMaterial,
-	VertexColors
+	PointsMaterial
 } from "../../../../../build/three.module.js";
 
 
@@ -65,7 +64,7 @@ MaterialHandler.prototype = {
 
 		let defaultVertexColorMaterial = new MeshStandardMaterial( { color: 0xDCF1FF } );
 		defaultVertexColorMaterial.name = 'defaultVertexColorMaterial';
-		defaultVertexColorMaterial.vertexColors = VertexColors;
+		defaultVertexColorMaterial.vertexColors = true;
 
 		let defaultLineMaterial = new LineBasicMaterial();
 		defaultLineMaterial.name = 'defaultLineMaterial';

+ 2 - 3
examples/jsm/misc/TubePainter.js

@@ -10,8 +10,7 @@ import {
 	Matrix4,
 	Mesh,
 	MeshStandardMaterial,
-	Vector3,
-	VertexColors
+	Vector3
 } from '../../../build/three.module.js';
 
 function TubePainter() {
@@ -34,7 +33,7 @@ function TubePainter() {
 	geometry.drawRange.count = 0;
 
 	let material = new MeshStandardMaterial( {
-		vertexColors: VertexColors
+		vertexColors: true
 	} );
 
 	let mesh = new Mesh( geometry, material );