buffaratt

beta.r3js.org
-=yb4f310 2017-11-29 22:18:03 +01:00
parent f7c2a70b18
commit f185e8b1ef
3 changed files with 16 additions and 16 deletions

14
build/game-lib-min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
// COMPILE TIME DEFINITIONS (Generated via gulp)
var __DATE__ = "Wed Nov 29 2017 22:14:24 GMT+0100 (CET)";
var __DATE__ = "Wed Nov 29 2017 22:17:53 GMT+0100 (CET)";
// END COMPILE TIME DEFINITIONS
/**
@ -13753,7 +13753,7 @@ GameLib.D3.Mesh.prototype.createInstanceGeometry = function(instanceGeometry) {
geometry = new THREE.BufferGeometry();
geometry.addAttribute('position', new THREE.BufferAttribute(vertices, 3));
geometry.addAttribute('position', new THREE.Float32BufferAttribute(vertices, 3));
/**
* Setyp mesh vertices colors
@ -13774,7 +13774,7 @@ GameLib.D3.Mesh.prototype.createInstanceGeometry = function(instanceGeometry) {
}.bind(this),
[]
);
geometry.addAttribute('color', new THREE.BufferAttribute(colors, 3, true));
geometry.addAttribute('color', new THREE.Float32BufferAttribute(colors, 3, true));
/**
* Setup face UVs
@ -13793,7 +13793,7 @@ GameLib.D3.Mesh.prototype.createInstanceGeometry = function(instanceGeometry) {
},
[]
);
geometry.addAttribute('uv', new THREE.BufferAttribute(uvs, 2));
geometry.addAttribute('uv', new THREE.Float32BufferAttribute(uvs, 2));
var normals = this.faces.reduce(
function(result, face) {
@ -13818,7 +13818,7 @@ GameLib.D3.Mesh.prototype.createInstanceGeometry = function(instanceGeometry) {
[]
);
geometry.addAttribute('normal', new THREE.BufferAttribute( normals, 3 ));
geometry.addAttribute('normal', new THREE.Float32BufferAttribute( normals, 3 ));
geometry.computeVertexNormals();

View File

@ -272,7 +272,7 @@ GameLib.D3.Mesh.prototype.createInstanceGeometry = function(instanceGeometry) {
geometry = new THREE.BufferGeometry();
geometry.addAttribute('position', new THREE.BufferAttribute(vertices, 3));
geometry.addAttribute('position', new THREE.Float32BufferAttribute(vertices, 3));
/**
* Setyp mesh vertices colors
@ -293,7 +293,7 @@ GameLib.D3.Mesh.prototype.createInstanceGeometry = function(instanceGeometry) {
}.bind(this),
[]
);
geometry.addAttribute('color', new THREE.BufferAttribute(colors, 3, true));
geometry.addAttribute('color', new THREE.Float32BufferAttribute(colors, 3, true));
/**
* Setup face UVs
@ -312,7 +312,7 @@ GameLib.D3.Mesh.prototype.createInstanceGeometry = function(instanceGeometry) {
},
[]
);
geometry.addAttribute('uv', new THREE.BufferAttribute(uvs, 2));
geometry.addAttribute('uv', new THREE.Float32BufferAttribute(uvs, 2));
var normals = this.faces.reduce(
function(result, face) {
@ -337,7 +337,7 @@ GameLib.D3.Mesh.prototype.createInstanceGeometry = function(instanceGeometry) {
[]
);
geometry.addAttribute('normal', new THREE.BufferAttribute( normals, 3 ));
geometry.addAttribute('normal', new THREE.Float32BufferAttribute( normals, 3 ));
geometry.computeVertexNormals();