未验证 提交 b01e14e6 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #14255 from marquizzo/patch-1

Missing methods on OBJLoader documentation
......@@ -89,6 +89,19 @@
If an <em>obj</em> object or group uses multiple materials while declaring faces, geometry groups and an array of materials are used.
</p>
<h3>[method:OBJLoader setMaterials]( [param:Array materials] )</h3>
<p>
[page:Array materials] - Array of [page:Material Materials].
</p>
<p>
Sets materials loaded by MTLLoader or any other supplier of an Array of [page:Material Materials].
</p>
<h3>[method:OBJLoader setPath]( [param:String path] )</h3>
<p>
Sets the base path or URL from which to load files. This can be useful to avoid repetition if you are calling [page:OBJLoader.load .load] multiple times on the same directory.
</p>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/OBJLoader.js examples/js/loaders/OBJLoader.js]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册