|
@@ -87,11 +87,11 @@
|
|
<h2>Minification Filters</h2>
|
|
<h2>Minification Filters</h2>
|
|
<code>
|
|
<code>
|
|
THREE.NearestFilter
|
|
THREE.NearestFilter
|
|
- THREE.NearestMipMapNearestFilter
|
|
|
|
- THREE.NearestMipMapLinearFilter
|
|
|
|
|
|
+ THREE.NearestMipmapNearestFilter
|
|
|
|
+ THREE.NearestMipmapLinearFilter
|
|
THREE.LinearFilter
|
|
THREE.LinearFilter
|
|
- THREE.LinearMipMapNearestFilter
|
|
|
|
- THREE.LinearMipMapLinearFilter
|
|
|
|
|
|
+ THREE.LinearMipmapNearestFilter
|
|
|
|
+ THREE.LinearMipmapLinearFilter
|
|
</code>
|
|
</code>
|
|
|
|
|
|
<p>
|
|
<p>
|
|
@@ -102,21 +102,21 @@
|
|
In addition to [page:constant NearestFilter] and [page:constant LinearFilter],
|
|
In addition to [page:constant NearestFilter] and [page:constant LinearFilter],
|
|
the following four functions can be used for minification:<br /><br />
|
|
the following four functions can be used for minification:<br /><br />
|
|
|
|
|
|
- [page:constant NearestMipMapNearestFilter] chooses the mipmap that most closely
|
|
|
|
|
|
+ [page:constant NearestMipmapNearestFilter] chooses the mipmap that most closely
|
|
matches the size of the pixel being textured
|
|
matches the size of the pixel being textured
|
|
and uses the [page:constant NearestFilter] criterion (the texel nearest to the
|
|
and uses the [page:constant NearestFilter] criterion (the texel nearest to the
|
|
center of the pixel) to produce a texture value.<br /><br />
|
|
center of the pixel) to produce a texture value.<br /><br />
|
|
|
|
|
|
- [page:constant NearestMipMapLinearFilter] chooses the two mipmaps that most closely
|
|
|
|
|
|
+ [page:constant NearestMipmapLinearFilter] chooses the two mipmaps that most closely
|
|
match the size of the pixel being textured and uses the [page:constant NearestFilter] criterion to produce
|
|
match the size of the pixel being textured and uses the [page:constant NearestFilter] criterion to produce
|
|
a texture value from each mipmap. The final texture value is a weighted average of those two values.<br /><br />
|
|
a texture value from each mipmap. The final texture value is a weighted average of those two values.<br /><br />
|
|
|
|
|
|
- [page:constant LinearMipMapNearestFilter] chooses the mipmap that most closely matches
|
|
|
|
|
|
+ [page:constant LinearMipmapNearestFilter] chooses the mipmap that most closely matches
|
|
the size of the pixel being textured and uses the [page:constant LinearFilter] criterion
|
|
the size of the pixel being textured and uses the [page:constant LinearFilter] criterion
|
|
(a weighted average of the four texels that are closest to the center of the pixel)
|
|
(a weighted average of the four texels that are closest to the center of the pixel)
|
|
to produce a texture value.<br /><br />
|
|
to produce a texture value.<br /><br />
|
|
|
|
|
|
- [page:constant LinearMipMapLinearFilter] is the default and chooses the two mipmaps
|
|
|
|
|
|
+ [page:constant LinearMipmapLinearFilter] is the default and chooses the two mipmaps
|
|
that most closely match the size of the pixel being textured and uses the [page:constant LinearFilter] criterion
|
|
that most closely match the size of the pixel being textured and uses the [page:constant LinearFilter] criterion
|
|
to produce a texture value from each mipmap. The final texture value is a weighted average of those two values.<br /><br />
|
|
to produce a texture value from each mipmap. The final texture value is a weighted average of those two values.<br /><br />
|
|
|
|
|
|
@@ -263,6 +263,8 @@
|
|
|
|
|
|
<h2>Source</h2>
|
|
<h2>Source</h2>
|
|
|
|
|
|
- [link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js]
|
|
|
|
|
|
+ <p>
|
|
|
|
+ [link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js]
|
|
|
|
+ </p>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|