ProgressiveLoader seems finished... I don't like the perfs :s

This commit is contained in:
Thomas FORGIONE
2015-06-16 14:33:54 +02:00
parent c6062e6a50
commit 21321a6ff7
5 changed files with 36 additions and 17 deletions

View File

@@ -253,7 +253,6 @@ mesh.Face.prototype.toString = function() {
mesh.Material = function() {
var split = arguments[0].replace(/\s+/g, ' ').trim().split(' ');
this.name = split[1];
console.log(this.name);
}
mesh.Material.prototype.toString = function() {

View File

@@ -94,6 +94,13 @@ geo.MeshStreamer.prototype.loadFromFile = function(path, callback) {
}
if (currentMesh.faces.length * 3 * 3 > 60000) {
var previousMesh = currentMesh;
currentMesh = new mesh.Mesh();
self.meshes.push(currentMesh);
currentMesh.material = previousMesh.material;
}
} else if (line[0] === 'u') {
// usemtl