提交 c0cad9d0 编写于 作者: M Mugen87

SVGRenderer: Added support for vertex colors

上级 d60e5d91
......@@ -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.
先完成此消息的编辑!
想要评论请 注册