瀏覽代碼

Merge pull request #19125 from frading/remove_VertexColor_from_imports

remove VertexColor imports from MaterialHandler and TubePainter
Mr.doob 5 年之前
父節點
當前提交
da375f6551
共有 2 個文件被更改,包括 4 次插入6 次删除
  1. 2 3
      examples/jsm/loaders/obj2/shared/MaterialHandler.js
  2. 2 3
      examples/jsm/misc/TubePainter.js

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

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

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

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