bg's final
parent
78b5732879
commit
c0d8a4e8c6
|
@ -27,7 +27,6 @@ GameLib.D3.BufferGeometry = function(
|
||||||
apiBufferGeometry.parentEntity,
|
apiBufferGeometry.parentEntity,
|
||||||
apiBufferGeometry.faces,
|
apiBufferGeometry.faces,
|
||||||
apiBufferGeometry.vertices,
|
apiBufferGeometry.vertices,
|
||||||
apiBufferGeometry.colors,
|
|
||||||
apiBufferGeometry.attributes,
|
apiBufferGeometry.attributes,
|
||||||
apiBufferGeometry.boundingBox,
|
apiBufferGeometry.boundingBox,
|
||||||
apiBufferGeometry.boundingSphere,
|
apiBufferGeometry.boundingSphere,
|
||||||
|
@ -37,15 +36,6 @@ GameLib.D3.BufferGeometry = function(
|
||||||
apiBufferGeometry.morphAttributes
|
apiBufferGeometry.morphAttributes
|
||||||
);
|
);
|
||||||
|
|
||||||
this.colors = this.colors.map(
|
|
||||||
function(color) {
|
|
||||||
return new GameLib.Color(
|
|
||||||
this.graphics,
|
|
||||||
color
|
|
||||||
)
|
|
||||||
}.bind(this)
|
|
||||||
);
|
|
||||||
|
|
||||||
this.faces = this.faces.map(
|
this.faces = this.faces.map(
|
||||||
function(face) {
|
function(face) {
|
||||||
return new GameLib.D3.Face(
|
return new GameLib.D3.Face(
|
||||||
|
@ -164,6 +154,10 @@ GameLib.D3.BufferGeometry.prototype.createInstance = function() {
|
||||||
);
|
);
|
||||||
this.instance.addAttribute('uv', new THREE.BufferAttribute(uvs, 2));
|
this.instance.addAttribute('uv', new THREE.BufferAttribute(uvs, 2));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Normals
|
||||||
|
* @type {Float32Array}
|
||||||
|
*/
|
||||||
var normals = new Float32Array(
|
var normals = new Float32Array(
|
||||||
this.faces.reduce(
|
this.faces.reduce(
|
||||||
function(result, face) {
|
function(result, face) {
|
||||||
|
|
Loading…
Reference in New Issue