Progressive loader seems finished

This commit is contained in:
Thomas FORGIONE
2015-06-16 15:14:43 +02:00
parent 21321a6ff7
commit 5dfc5e4d4c
6 changed files with 72 additions and 63 deletions

View File

@@ -94,13 +94,6 @@ 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