MultiMaterial.html 1018 字节
Newer Older
M
r59  
Mr.doob 已提交
1 2 3
<!DOCTYPE html>
<html lang="en">
	<head>
M
r78  
Mr.doob 已提交
4
		<meta charset="utf-8" />
M
r72  
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" />
M
r59  
Mr.doob 已提交
9 10 11 12
	</head>
	<body>
		<h1>[name]</h1>

M
r66  
Mr.doob 已提交
13
		<div class="desc">
M
r74  
Mr.doob 已提交
14
		A Material to define multiple materials for the same geometry.
M
r66  
Mr.doob 已提交
15 16 17
		The geometry decides which material is used for which faces by the [page:Face3 faces materialindex].
		The materialindex corresponds with the index of the material in the materials array.
		</div>
M
r59  
Mr.doob 已提交
18 19 20 21 22


		<h2>Constructor</h2>


M
r78  
Mr.doob 已提交
23
		<h3>[name]( [page:Array materials] )</h3>
M
r59  
Mr.doob 已提交
24
		<div>
M
r66  
Mr.doob 已提交
25
		materials -- The materials for the geometry.
M
r59  
Mr.doob 已提交
26 27
		</div>
		<div>
M
r74  
Mr.doob 已提交
28
		Creates a MultiMaterial with the correct materials.
M
r59  
Mr.doob 已提交
29 30 31 32 33 34 35
		</div>


		<h2>Properties</h2>



M
r69  
Mr.doob 已提交
36
		<h3>[property:Array materials]</h3>
M
r59  
Mr.doob 已提交
37
		<div>
M
r69  
Mr.doob 已提交
38 39
		Get or set the materials for the geometry.
		</div>
M
r59  
Mr.doob 已提交
40 41 42 43 44 45 46 47 48 49

		<h2>Methods</h2>



		<h2>Source</h2>

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