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 non-shiny (Lambertian) surfaces, evaluated per vertex.</div>
|
---|
15 |
|
---|
16 |
|
---|
17 | <h2>Constructor</h2>
|
---|
18 |
|
---|
19 |
|
---|
20 | <h3>[name]([page:todo parameters])</h3>
|
---|
21 | <div>
|
---|
22 | parameters -- todo
|
---|
23 | </div>
|
---|
24 | <div>
|
---|
25 | todo
|
---|
26 | </div>
|
---|
27 |
|
---|
28 |
|
---|
29 | <h2>Properties</h2>
|
---|
30 | <div>See the base [page:Material] class for common parameters.</div>
|
---|
31 |
|
---|
32 | <h3>.[page:Color color]</h3>
|
---|
33 | <div>
|
---|
34 | Diffuse color of the material. Default is white.<br />
|
---|
35 | </div>
|
---|
36 |
|
---|
37 | <h3>.[page:Color ambient]</h3>
|
---|
38 | <div>
|
---|
39 | Ambient color of the material, multiplied by the color of the [page:AmbientLight]. Default is white.<br />
|
---|
40 | </div>
|
---|
41 |
|
---|
42 | <h3>.[page:Color emissive]</h3>
|
---|
43 | <div>
|
---|
44 | Emissive (light) color of the material, essentially a solid color unaffected by other lighting. Default is black.<br />
|
---|
45 | </div>
|
---|
46 |
|
---|
47 | <h3>.[page:Integer shading]</h3>
|
---|
48 | <div>How the triangles of a curved surface are rendered: as a smooth surface, as flat separate facets, or no shading at all.</div>
|
---|
49 |
|
---|
50 | <div>Options are [page:Materials THREE.SmoothShading] (default), [page:Materials THREE.FlatShading], [page:Materials THREE.NoShading].</div>
|
---|
51 |
|
---|
52 | <h3>.[page:Boolean wireframe]</h3>
|
---|
53 | <div>Whether the triangles' edges are displayed instead of surfaces. Default is *false*.</div>
|
---|
54 |
|
---|
55 | <h3>.[page:Float wireframeLinewidth]</h3>
|
---|
56 | <div>Line thickness for wireframe mode. Default is *1.0*.</div>
|
---|
57 | <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>
|
---|
58 |
|
---|
59 | <h3>.[page:String wireframeLinecap]</h3>
|
---|
60 | <div>Define appearance of line ends. Possible values are "butt", "round" and "square". Default is 'round'.</div>
|
---|
61 | <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>
|
---|
62 |
|
---|
63 | <h3>.[page:String wireframeLinejoin]</h3>
|
---|
64 | <div>Define appearance of line joints. Possible values are "round", "bevel" and "miter". Default is 'round'.</div>
|
---|
65 | <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>
|
---|
66 |
|
---|
67 | <h3>.[page:Integer vertexColors]</h3>
|
---|
68 | <div>Define how the vertices gets colored. Possible values are THREE.NoColors, THREE.FaceColors and THREE.VertexColors. Default is THREE.NoColors.</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:Boolean fog]</h3>
|
---|
72 | <div>Define whether the material color is affected by global fog settings. Default is *true*.</div>
|
---|
73 | <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>
|
---|
74 |
|
---|
75 | <h3>.[page:Texture map]</h3>
|
---|
76 | <div>Set color texture map. Default is null.</div>
|
---|
77 |
|
---|
78 | <h3>.[page:Texture lightMap]</h3>
|
---|
79 | <div>Set light map. Default is null.</div>
|
---|
80 |
|
---|
81 | <h3>.[page:Texture specularMap]</h3>
|
---|
82 | <div>Since this material does not have a specular component, the specular value affects only how much of the environment map affects the surface. Default is null.</div>
|
---|
83 |
|
---|
84 | <h3>.[page:TextureCube envMap]</h3>
|
---|
85 | <div>Set env map. Default is null.</div>
|
---|
86 |
|
---|
87 | <h3>.[page:Float reflectivity]</h3>
|
---|
88 | <div>How much the environment map affects the surface; also see "combine".</div>
|
---|
89 |
|
---|
90 | <h3>.[page:Float refractionRatio]</h3>
|
---|
91 | <div>The index of refraction for an environment map using [page:Textures THREE.CubeRefractionMapping]. Default is *0.98*.</div>
|
---|
92 |
|
---|
93 | <h3>.[page:Integer combine]</h3>
|
---|
94 | <div>How to combine the result of the surface's color with the environment map, if any.</div>
|
---|
95 |
|
---|
96 | <div>Options are [page:Textures THREE.Multiply] (default), [page:Textures THREE.MixOperation], [page:Textures THREE.AddOperation]. If mix is chosen, the reflectivity is used to blend between the two colors.</div>
|
---|
97 |
|
---|
98 | <h3>.[page:Boolean skinning]</h3>
|
---|
99 | <div>Define whether the material uses skinning. Default is *false*.</div>
|
---|
100 |
|
---|
101 | <h3>.[page:Boolean morphTargets]</h3>
|
---|
102 | <div>Define whether the material uses morphTargets. Default is *false*.</div>
|
---|
103 |
|
---|
104 |
|
---|
105 | <h3>.[page:Vector3 wrapRGB]</h3>
|
---|
106 | <div>
|
---|
107 | todo
|
---|
108 | </div>
|
---|
109 |
|
---|
110 | <h3>.[page:boolean morphNormals]</h3>
|
---|
111 | <div>
|
---|
112 | todo
|
---|
113 | </div>
|
---|
114 |
|
---|
115 | <h3>.[page:boolean wrapAround]</h3>
|
---|
116 | <div>
|
---|
117 | todo
|
---|
118 | </div>
|
---|
119 |
|
---|
120 | <h2>Methods</h2>
|
---|
121 |
|
---|
122 | <h2>Source</h2>
|
---|
123 |
|
---|
124 | [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
---|
125 | </body>
|
---|
126 | </html>
|
---|