Pārlūkot izejas kodu

Docs: Fixed vertexColors description. Fixes #4265.

Mr.doob 11 gadi atpakaļ
vecāks
revīzija
d0c0d2535a

+ 4 - 4
docs/api/materials/LineBasicMaterial.html

@@ -25,7 +25,7 @@
 		linewidth — Line thickness. Default is 1.<br />
 		linecap — Define appearance of line ends. Default is 'round'.<br />
 		linejoin — Define appearance of line joints. Default is 'round'.<br />
-		vertexColors — Define whether the material uses vertex colors, or not. Default is false.<br />
+		vertexColors — Define how the vertices gets colored. Default is THREE.NoColors.<br />
 		fog — Define whether the material color is affected by global fog settings. Default is false.
 		</div>
 
@@ -46,9 +46,9 @@
 		<div>Define appearance of line joints. Possible values are "round", "bevel" and "miter". Default is 'round'.</div>
 		<div>This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:WebGLRenderer WebGL] renderer, but does work with the [page:CanvasRenderer Canvas] renderer.</div>
 
-		<h3>.[page:Boolean vertexColors]</h3>
-		<div>Define whether the material uses vertex colors, or not. Default is false.</div>
-		<div>This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:CanvasRenderer Canvas] renderer, but does work with the [page:WebGLRenderer WebGL] renderer.</div>
+		<h3>.[page:Integer vertexColors]</h3>
+		<div>Define how the vertices gets colored. Possible values are THREE.NoColors, THREE.FaceColors and THREE.VertexColors. Default is THREE.NoColors.</div>
+		<div>This setting might not have any effect when used with certain renderers.</div>
 
 		<h3>.[page:Boolean fog]</h3>
 		<div>Define whether the material color is affected by global fog settings.</div>

+ 3 - 3
docs/api/materials/MeshBasicMaterial.html

@@ -28,7 +28,7 @@
 		wireframeLinecap — Define appearance of line ends. Default is 'round'.<br />
 		wireframeLinejoin — Define appearance of line joints. Default is 'round'.<br />
 		shading — Define shading type. Default is THREE.SmoothShading.<br />
-		vertexColors — Define whether the material uses vertex colors, or not. Default is false.<br />
+		vertexColors — Define how the vertices gets colored. Default is THREE.NoColors.<br />
 		fog — Define whether the material color is affected by global fog settings. Default is true.<br />
 		lightMap — Set light map. Default is null.<br />
 		specularMap — Set specular map. Default is null.<br />
@@ -60,8 +60,8 @@
 		<h3>.[page:String shading]</h3>
 		<div>Define shading type. Default is THREE.SmoothShading.</div>
 
-		<h3>.[page:Boolean vertexColors]</h3>
-		<div>Define whether the material uses vertex colors, or not. Default is false.</div>
+		<h3>.[page:Integer vertexColors]</h3>
+		<div>Define how the vertices gets colored. Possible values are THREE.NoColors, THREE.FaceColors and THREE.VertexColors. Default is THREE.NoColors.</div>
 		<div>This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:CanvasRenderer Canvas] renderer, but does work with the [page:WebGLRenderer WebGL] renderer.</div>
 
 		<h3>.[page:Boolean fog]</h3>

+ 2 - 2
docs/api/materials/MeshLambertMaterial.html

@@ -64,8 +64,8 @@
 		<div>Define appearance of line joints. Possible values are "round", "bevel" and "miter". Default is 'round'.</div>
 		<div>This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:WebGLRenderer WebGL] renderer, but does work with the [page:CanvasRenderer Canvas] renderer.</div>
 
-		<h3>.[page:Boolean vertexColors]</h3>
-		<div>Define whether the material uses vertex colors, or not. Default is *false*.</div>
+		<h3>.[page:Integer vertexColors]</h3>
+		<div>Define how the vertices gets colored. Possible values are THREE.NoColors, THREE.FaceColors and THREE.VertexColors. Default is THREE.NoColors.</div>
 		<div>This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:CanvasRenderer Canvas] renderer, but does work with the [page:WebGLRenderer WebGL] renderer.</div>
 
 		<h3>.[page:Boolean fog]</h3>

+ 2 - 2
docs/api/materials/MeshPhongMaterial.html

@@ -74,8 +74,8 @@
 		<div>Define appearance of line joints. Possible values are "round", "bevel" and "miter". Default is 'round'.</div>
 		<div>This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:WebGLRenderer WebGL] renderer, but does work with the [page:CanvasRenderer Canvas] renderer.</div>
 
-		<h3>.[page:Boolean vertexColors]</h3>
-		<div>Define whether the material uses vertex colors, or not. Default is *false*.</div>
+		<h3>.[page:Integer vertexColors]</h3>
+		<div>Define how the vertices gets colored. Possible values are THREE.NoColors, THREE.FaceColors and THREE.VertexColors. Default is THREE.NoColors.</div>
 		<div>This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:CanvasRenderer Canvas] renderer, but does work with the [page:WebGLRenderer WebGL] renderer.</div>
 
 		<h3>.[page:Boolean fog]</h3>

+ 0 - 2
docs/api/materials/ParticleSystemMaterial.html

@@ -48,8 +48,6 @@
 		<div>Specify whether particles' size will get smaller with the distance. Default is true.</div>
 
 		<h3>.[page:Boolean vertexColors]</h3>
-		<div>Define whether the material uses vertex colors, or not. Default is false.</div>
-		<div>This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:CanvasRenderer Canvas] renderer, but does work with the [page:WebGLRenderer WebGL] renderer.</div>
 
 		<h3>.[page:Boolean fog]</h3>
 		<div>Define whether the material color is affected by global fog settings.</div>