|
@@ -322,6 +322,12 @@ THREE.Projector = function () {
|
|
|
|
|
|
_face.material = material;
|
|
_face.material = material;
|
|
|
|
|
|
|
|
+ if ( material.vertexColors === THREE.FaceColors ) {
|
|
|
|
+
|
|
|
|
+ _face.color.fromArray( colors, a * 3 );
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
_renderData.elements.push( _face );
|
|
_renderData.elements.push( _face );
|
|
|
|
|
|
}
|
|
}
|
|
@@ -473,6 +479,18 @@ THREE.Projector = function () {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if ( attributes.color !== undefined ) {
|
|
|
|
+
|
|
|
|
+ var colors = attributes.color.array;
|
|
|
|
+
|
|
|
|
+ for ( var i = 0, l = colors.length; i < l; i += 3 ) {
|
|
|
|
+
|
|
|
|
+ renderList.pushColor( colors[ i ], colors[ i + 1 ], colors[ i + 2 ] );
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
if ( attributes.uv !== undefined ) {
|
|
if ( attributes.uv !== undefined ) {
|
|
|
|
|
|
var uvs = attributes.uv.array;
|
|
var uvs = attributes.uv.array;
|