ProgressiveLoader seems finished... I don't like the perfs :s
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user