|
@@ -13,7 +13,7 @@
|
|
|
|
|
|
<div class="desc">A loader for loading an <em>.mtl</em> resource, used internaly by [page:OBJMTLLoader] and [page:UTF8Loader].<br />
|
|
<div class="desc">A loader for loading an <em>.mtl</em> resource, used internaly by [page:OBJMTLLoader] and [page:UTF8Loader].<br />
|
|
The Material Template Library format (MTL) or .MTL File Format is a companion file format to .OBJ that describes surface shading
|
|
The Material Template Library format (MTL) or .MTL File Format is a companion file format to .OBJ that describes surface shading
|
|
- (material) properties of objects within one or more .OBJ files.
|
|
|
|
|
|
+ (material) properties of objects within one or more .OBJ files.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<h2>Constructor</h2>
|
|
<h2>Constructor</h2>
|
|
@@ -69,7 +69,7 @@
|
|
<div>
|
|
<div>
|
|
Set to true if you need to load textures from a different origin.
|
|
Set to true if you need to load textures from a different origin.
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
<h3>[method:null setMaterialOptions]( [page:Object options] )</h3>
|
|
<h3>[method:null setMaterialOptions]( [page:Object options] )</h3>
|
|
<div>
|
|
<div>
|
|
@@ -79,12 +79,13 @@
|
|
<li>wrap: What type of wrapping to apply for textures. THREE.RepeatWrapping (default), THREE.ClampToEdgeWrapping, THREE.MirroredRepeatWrapping</li>
|
|
<li>wrap: What type of wrapping to apply for textures. THREE.RepeatWrapping (default), THREE.ClampToEdgeWrapping, THREE.MirroredRepeatWrapping</li>
|
|
<li>normalizeRGB: RGBs need to be normalized to 0-1 from 0-255. Default: false, assumed to be already normalized</li>
|
|
<li>normalizeRGB: RGBs need to be normalized to 0-1 from 0-255. Default: false, assumed to be already normalized</li>
|
|
<li>ignoreZeroRGBs: Ignore values of RGBs (Ka,Kd,Ks) that are all 0's. Default: false</li>
|
|
<li>ignoreZeroRGBs: Ignore values of RGBs (Ka,Kd,Ks) that are all 0's. Default: false</li>
|
|
|
|
+ <li>invertTrProperty: Use values 1 of Tr field for fully opaque. This option is useful for obj exported from 3ds MAX, vcglib or meshlab. Default: false</li>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
Set of options on how to construct the materials
|
|
Set of options on how to construct the materials
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
<h3>[method:MTLLoaderMaterialCreator parse]( [page:String text] )</h3>
|
|
<h3>[method:MTLLoaderMaterialCreator parse]( [page:String text] )</h3>
|
|
<div>
|
|
<div>
|
|
@@ -93,7 +94,7 @@
|
|
<div>
|
|
<div>
|
|
Parse a <em>mtl</em> text structure and return a [page:MTLLoaderMaterialCreator] instance.<br />
|
|
Parse a <em>mtl</em> text structure and return a [page:MTLLoaderMaterialCreator] instance.<br />
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
<h2>Source</h2>
|
|
<h2>Source</h2>
|
|
|
|
|