提交 ce29ba08 编写于 作者: T Takahiro

DRACOLoader: Method chaining

上级 ef88a0c4
......@@ -52,14 +52,17 @@ THREE.DRACOLoader.prototype = {
setPath: function(value) {
this.path = value;
return this;
},
setCrossOrigin: function(value) {
this.crossOrigin = value;
return this;
},
setVerbosity: function(level) {
this.verbosity = level;
return this;
},
/**
......@@ -70,6 +73,7 @@ THREE.DRACOLoader.prototype = {
*/
setDrawMode: function(drawMode) {
this.drawMode = drawMode;
return this;
},
/**
......@@ -84,6 +88,7 @@ THREE.DRACOLoader.prototype = {
skipDequantization = skip;
this.getAttributeOptions(attributeName).skipDequantization =
skipDequantization;
return this;
},
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册