1 | <!DOCTYPE html>
|
---|
2 | <html lang="en">
|
---|
3 | <head>
|
---|
4 | <meta charset="utf-8" />
|
---|
5 | <script src="../../list.js"></script>
|
---|
6 | <script src="../../page.js"></script>
|
---|
7 | <link type="text/css" rel="stylesheet" href="../../page.css" />
|
---|
8 | </head>
|
---|
9 | <body>
|
---|
10 | [page:Material] →
|
---|
11 |
|
---|
12 | <h1>[name]</h1>
|
---|
13 |
|
---|
14 | <div class="desc">A material that maps the normal vectors to RGB colors.</div>
|
---|
15 |
|
---|
16 |
|
---|
17 | <h2>Constructor</h2>
|
---|
18 |
|
---|
19 |
|
---|
20 | <h3>[name]([page:todo parameters])</h3>
|
---|
21 | <div>
|
---|
22 | parameters is an object with one or more properties defining the material's appearance.
|
---|
23 | </div>
|
---|
24 | <div>
|
---|
25 | morphTargets -- Define whether the material uses morphTargets. Default is false.<br/>
|
---|
26 | shading -- How the triangles of a curved surface are rendered. Default is [page:Materials THREE.SmoothShading].<br/>
|
---|
27 | wireframe -- Render geometry as wireframe. Default is false (i.e. render as smooth shaded).<br/>
|
---|
28 | wireframeLinewidth -- Controls wireframe thickness. Default is 1.<br/>
|
---|
29 | </div>
|
---|
30 |
|
---|
31 |
|
---|
32 | <h2>Properties</h2>
|
---|
33 |
|
---|
34 |
|
---|
35 |
|
---|
36 | <h3>.[page:boolean morphTargets]</h3>
|
---|
37 | <div>Define whether the material uses morphTargets. Default is false.</div>
|
---|
38 |
|
---|
39 | <h3>.[page:number shading]</h3>
|
---|
40 | <div>
|
---|
41 | How the triangles of a curved surface are rendered: as a smooth surface, as flat separate facets, or no shading at all.<br/><br/>
|
---|
42 | Options are [page:Materials THREE.SmoothShading] (default), [page:Materials THREE.FlatShading]
|
---|
43 | </div>
|
---|
44 |
|
---|
45 |
|
---|
46 | <h3>.[page:boolean wireframe]</h3>
|
---|
47 | <div>
|
---|
48 | Render geometry as wireframe. Default is false (i.e. render as smooth shaded).
|
---|
49 | </div>
|
---|
50 |
|
---|
51 | <h3>.[page:number wireframeLinewidth]</h3>
|
---|
52 | <div>
|
---|
53 | Controls wireframe thickness. Default is 1.<br/><br/>
|
---|
54 | Due to limitations in the ANGLE layer, on Windows platforms linewidth will always be 1 regardless of the set value.
|
---|
55 | </div>
|
---|
56 |
|
---|
57 | <h2>Methods</h2>
|
---|
58 |
|
---|
59 |
|
---|
60 |
|
---|
61 | <h2>Source</h2>
|
---|
62 |
|
---|
63 | [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
---|
64 | </body>
|
---|
65 | </html>
|
---|