未验证 提交 acaba2e4 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #15114 from Mugen87/dev11

Projector/SVGLoader: Added support for vertex colors
......@@ -322,7 +322,7 @@ THREE.Projector = function () {
_face.material = material;
if ( material.vertexColors === THREE.FaceColors ) {
if ( material.vertexColors === THREE.FaceColors || material.vertexColors === THREE.VertexColors ) {
_face.color.fromArray( colors, a * 3 );
......
......@@ -403,7 +403,7 @@ THREE.SVGRenderer = function () {
_color.copy( material.color );
if ( material.vertexColors === THREE.FaceColors ) {
if ( material.vertexColors === THREE.FaceColors || material.vertexColors === THREE.VertexColors ) {
_color.multiply( element.color );
......@@ -413,7 +413,7 @@ THREE.SVGRenderer = function () {
_diffuseColor.copy( material.color );
if ( material.vertexColors === THREE.FaceColors ) {
if ( material.vertexColors === THREE.FaceColors || material.vertexColors === THREE.VertexColors ) {
_diffuseColor.multiply( element.color );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册