PointsMaterial.html 2.4 KB
Newer Older
1 2 3
<!DOCTYPE html>
<html lang="en">
	<head>
M
Mr.doob 已提交
4
		<meta charset="utf-8" />
M
Mr.doob 已提交
5 6 7 8
		<base href="../../" />
		<script src="list.js"></script>
		<script src="page.js"></script>
		<link type="text/css" rel="stylesheet" href="page.css" />
9 10
	</head>
	<body>
C
cjshannon 已提交
11
		[page:Material] &rarr;
M
Mr.doob 已提交
12

13
		<h1>[name]</h1>
M
Mr.doob 已提交
14

M
Mr.doob 已提交
15
		<div class="desc">The default material used by [page:Points].</div>
M
Mr.doob 已提交
16 17


18
		<h2>Constructor</h2>
M
Mr.doob 已提交
19

S
sole 已提交
20
		<h3>[name]( [page:Object parameters] )</h3>
M
Mr.doob 已提交
21

S
sole 已提交
22
		<div>parameters is an object with one or more properties defining the material's appearance.</div>
23

S
sole 已提交
24
		<div>
M
Mr.doob 已提交
25
		color — Points color in hexadecimal. Default is 0xffffff.<br />
G
gero3 已提交
26
		map — a [page:Texture texture].If defined, then a point has the data from texture as colors. Default is null.<br />
M
Mr.doob 已提交
27
		size — Define size of points. Default is 1.0.<br />
S
sole 已提交
28 29 30 31
		sizeAttenuation — Enable/disable size attenuation with distance.<br />
		vertexColors — Define whether the material uses vertex colors, or not. Default is false.<br />
		fog — Define whether the material color is affected by global fog settings. Default is true.
		</div>
M
Mr.doob 已提交
32

33
		<h2>Properties</h2>
34
		<div>See the base [page:Material] class for common properties.</div>
M
Mr.doob 已提交
35

36
		<h3>[property:Number color]</h3>
37

M
Mr.doob 已提交
38
		<div>Sets the color of the points. Default is 0xffffff.</div>
39

40
		<h3>[property:Texture map]</h3>
41

M
Mr.doob 已提交
42
		<div>Sets the color of the points using data from a texture.</div>
43

44
		<h3>[property:Number size]</h3>
45

M
Mr.doob 已提交
46
		<div>Sets the size of the points. Default is 1.0.</div>
S
sole 已提交
47

48
		<h3>[property:Boolean sizeAttenuation]</h3>
49

M
Mr.doob 已提交
50
		<div>Specify whether points' size will get smaller with the distance. Default is true.</div>
S
sole 已提交
51

52
		<h3>[property:Boolean vertexColors]</h3>
53 54
		<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>
55

56
		<h3>[property:Boolean fog]</h3>
S
sole 已提交
57 58
		<div>Define whether the material color is affected by global fog settings.</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>
M
Mr.doob 已提交
59 60


61 62
		<h2>Methods</h2>

63
		<h2>Source</h2>
M
Mr.doob 已提交
64

65 66 67
		[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
	</body>
</html>