提交 e3184249 编写于 作者: G Guillaume Fradin

remove VertexColor imports from MaterialHandler and TubePainter

上级 8122caef
...@@ -7,8 +7,7 @@ import { ...@@ -7,8 +7,7 @@ import {
LineBasicMaterial, LineBasicMaterial,
MaterialLoader, MaterialLoader,
MeshStandardMaterial, MeshStandardMaterial,
PointsMaterial, PointsMaterial
VertexColors
} from "../../../../../build/three.module.js"; } from "../../../../../build/three.module.js";
...@@ -65,7 +64,7 @@ MaterialHandler.prototype = { ...@@ -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';
......
...@@ -10,8 +10,7 @@ import { ...@@ -10,8 +10,7 @@ import {
Matrix4, Matrix4,
Mesh, Mesh,
MeshStandardMaterial, MeshStandardMaterial,
Vector3, Vector3
VertexColors
} from '../../../build/three.module.js'; } from '../../../build/three.module.js';
function TubePainter() { function TubePainter() {
...@@ -34,7 +33,7 @@ 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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册