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

remove VertexColor imports from MaterialHandler and TubePainter

上级 8122caef
......@@ -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';
......
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册