提交 298203f5 编写于 作者: S sunag

codestyle

上级 d0c23311
......@@ -224,7 +224,7 @@
}
function updateMaterial() {
if ( mesh.material ) mesh.material.dispose();
......@@ -234,31 +234,31 @@
var url = "nodes/" + param.load + ".json";
var library = {
"cloud" : cloud
"cloud": cloud
};
var loader = new THREE.NodeMaterialLoader( undefined, library ).load( url, function () {
var time = loader.getObjectByName("time");
if (time) {
var time = loader.getObjectByName( "time" );
if ( time ) {
// enable time scale
time.timeScale = true;
loader.material.build();
// gui
addGui( 'timeScale', time.scale, function ( val ) {
time.scale = val;
}, false, -2, 2 );
}, false, - 2, 2 );
}
// set material
mesh.material = loader.material;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册