diff --git a/src/game-lib-d3-buffer-geometry-a.js b/src/game-lib-d3-buffer-geometry-a.js index cd71883..a91aa5b 100644 --- a/src/game-lib-d3-buffer-geometry-a.js +++ b/src/game-lib-d3-buffer-geometry-a.js @@ -27,7 +27,6 @@ GameLib.D3.BufferGeometry = function( apiBufferGeometry.parentEntity, apiBufferGeometry.faces, apiBufferGeometry.vertices, - apiBufferGeometry.colors, apiBufferGeometry.attributes, apiBufferGeometry.boundingBox, apiBufferGeometry.boundingSphere, @@ -37,15 +36,6 @@ GameLib.D3.BufferGeometry = function( apiBufferGeometry.morphAttributes ); - this.colors = this.colors.map( - function(color) { - return new GameLib.Color( - this.graphics, - color - ) - }.bind(this) - ); - this.faces = this.faces.map( function(face) { return new GameLib.D3.Face( @@ -163,7 +153,11 @@ GameLib.D3.BufferGeometry.prototype.createInstance = function() { ) ); this.instance.addAttribute('uv', new THREE.BufferAttribute(uvs, 2)); - + + /** + * Normals + * @type {Float32Array} + */ var normals = new Float32Array( this.faces.reduce( function(result, face) {