Преглед изворни кода

Merge pull request #18080 from Mugen87/dev39

Docs: Clarify texture filtering for gradient maps.
Mr.doob пре 5 година
родитељ
комит
203ffb134a

+ 2 - 1
docs/api/en/materials/MeshToonMaterial.html

@@ -130,7 +130,8 @@
 		</p>
 
 		<h3>[property:Texture gradientMap]</h3>
-		<p>Gradient map for toon shading. Default is *null*.</p>
+		<p>Gradient map for toon shading. It's required to set [page:Texture.minFilter] and [page:Texture.magFilter] to
+			[page:Textures THREE.NearestFilter] when using this type of texture. Default is *null*.</p>
 
 		<h3>[property:Texture lightMap]</h3>
 		<p>The light map. Default is null. The lightMap requires a second set of UVs,

+ 2 - 1
docs/api/zh/materials/MeshToonMaterial.html

@@ -130,7 +130,8 @@
 		</p>
 
 		<h3>[property:Texture gradientMap]</h3>
-		<p>Gradient map for toon shading. Default is *null*.</p>
+		<p>Gradient map for toon shading. It's required to set [page:Texture.minFilter] and [page:Texture.magFilter] to
+			[page:Textures THREE.NearestFilter] when using this type of texture. Default is *null*.</p>
 
 		<h3>[property:Texture lightMap]</h3>
 		<p>The light map. Default is null. The lightMap requires a second set of UVs,