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 for drawing geometries in a simple shaded (flat or wireframe) way.</div>
|
---|
15 | <div class="desc">The default will render as flat polygons. To draw the mesh as wireframe, simply set the 'wireframe' property to true.</div>
|
---|
16 |
|
---|
17 |
|
---|
18 | <h2>Constructor</h2>
|
---|
19 |
|
---|
20 |
|
---|
21 | <h3>[name]( [page:Object parameters] )</h3>
|
---|
22 |
|
---|
23 | <div>parameters is an object with one or more properties defining the material's appearance.</div>
|
---|
24 | <div>
|
---|
25 | color â geometry color in hexadecimal. Default is 0xffffff.<br />
|
---|
26 | wireframe â render geometry as wireframe. Default is false.<br />
|
---|
27 | wireframeLinewidth â Line thickness. Default is 1.<br />
|
---|
28 | wireframeLinecap â Define appearance of line ends. Default is 'round'.<br />
|
---|
29 | wireframeLinejoin â Define appearance of line joints. Default is 'round'.<br />
|
---|
30 | shading â Define shading type. Default is THREE.SmoothShading.<br />
|
---|
31 | vertexColors â Define how the vertices gets colored. Default is THREE.NoColors.<br />
|
---|
32 | fog â Define whether the material color is affected by global fog settings. Default is true.<br />
|
---|
33 | lightMap â Set light map. Default is null.<br />
|
---|
34 | specularMap â Set specular map. Default is null.<br />
|
---|
35 | envMap â Set env map. Default is null.<br />
|
---|
36 | skinning â Define whether the material uses skinning. Default is false.<br />
|
---|
37 | morphTargets â Define whether the material uses morphTargets. Default is false.
|
---|
38 | </div>
|
---|
39 |
|
---|
40 | <h2>Properties</h2>
|
---|
41 |
|
---|
42 | <h3>.[page:Integer color]</h3>
|
---|
43 | <div>Sets the color of the geometry. Default is 0xffffff.</div>
|
---|
44 |
|
---|
45 | <h3>.[page:Boolean wireframe]</h3>
|
---|
46 | <div>Render geometry as wireframe. Default is false (i.e. render as flat polygons).</div>
|
---|
47 |
|
---|
48 | <h3>.[page:Float wireframeLinewidth]</h3>
|
---|
49 | <div>Controls wireframe thickness. Default is 1.</div>
|
---|
50 | <div>Due to limitations in the <a href="https://code.google.com/p/angleproject/" target="_blank">ANGLE layer</a>, on Windows platforms linewidth will always be 1 regardless of the set value.</div>
|
---|
51 |
|
---|
52 | <h3>.[page:String wireframeLinecap]</h3>
|
---|
53 | <div>Define appearance of line ends. Possible values are "butt", "round" and "square". Default is 'round'.</div>
|
---|
54 | <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>
|
---|
55 |
|
---|
56 | <h3>.[page:String wireframeLinejoin]</h3>
|
---|
57 | <div>Define appearance of line joints. Possible values are "round", "bevel" and "miter". Default is 'round'.</div>
|
---|
58 | <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>
|
---|
59 |
|
---|
60 | <h3>.[page:String shading]</h3>
|
---|
61 | <div>Define shading type. Default is THREE.SmoothShading.</div>
|
---|
62 |
|
---|
63 | <h3>.[page:Integer vertexColors]</h3>
|
---|
64 | <div>Define how the vertices gets colored. Possible values are THREE.NoColors, THREE.FaceColors and THREE.VertexColors. Default is THREE.NoColors.</div>
|
---|
65 | <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>
|
---|
66 |
|
---|
67 | <h3>.[page:Boolean fog]</h3>
|
---|
68 | <div>Define whether the material color is affected by global fog settings.</div>
|
---|
69 | <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>
|
---|
70 |
|
---|
71 | <h3>.[page:Texture lightMap]</h3>
|
---|
72 | <div>Set light map. Default is null.</div>
|
---|
73 |
|
---|
74 | <h3>.[page:Texture specularMap]</h3>
|
---|
75 | <div>Set specular map. Default is null.</div>
|
---|
76 |
|
---|
77 | <h3>.[page:TextureCube envMap]</h3>
|
---|
78 | <div>Set env map. Default is null.</div>
|
---|
79 |
|
---|
80 | <h3>.[page:Boolean skinning]</h3>
|
---|
81 | <div>Define whether the material uses skinning. Default is false.</div>
|
---|
82 |
|
---|
83 | <h3>.[page:Boolean morphTargets]</h3>
|
---|
84 | <div>Define whether the material uses morphTargets. Default is false.</div>
|
---|
85 |
|
---|
86 | <h3>.[page:object map]</h3>
|
---|
87 | <div>
|
---|
88 | todo
|
---|
89 | </div>
|
---|
90 |
|
---|
91 | <h3>.[page:number combine]</h3>
|
---|
92 | <div>
|
---|
93 | todo
|
---|
94 | </div>
|
---|
95 |
|
---|
96 | <h3>.[page:number reflectivity]</h3>
|
---|
97 | <div>
|
---|
98 | todo
|
---|
99 | </div>
|
---|
100 |
|
---|
101 | <h3>.[page:number refractionRatio]</h3>
|
---|
102 | <div>
|
---|
103 | todo
|
---|
104 | </div>
|
---|
105 |
|
---|
106 | <h2>Methods</h2>
|
---|
107 |
|
---|
108 | <h2>Source</h2>
|
---|
109 |
|
---|
110 | [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
---|
111 | </body>
|
---|
112 | </html>
|
---|