Improved performance in streaming
This commit is contained in:
6
js/prototype/initScene.js
vendored
6
js/prototype/initScene.js
vendored
@@ -616,12 +616,16 @@ function initSponzaScene(scene, collidableObjects, loader, static_path) {
|
||||
|
||||
}
|
||||
|
||||
obj.raycastable = true;
|
||||
|
||||
});
|
||||
|
||||
loader.load();
|
||||
glob = loader.obj;
|
||||
loader.obj.scale.set(0.1,0.1,0.1);
|
||||
|
||||
collidableObjects.push(loader.obj);
|
||||
loader.obj.raycastable = true;
|
||||
|
||||
// ProgressiveLoader('/static/data/sponza/sponza.obj', scene,
|
||||
// function(obj) {
|
||||
// obj.scale.set(0.1,0.1,0.1);
|
||||
|
||||
Reference in New Issue
Block a user