You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<div>parameters is an object with one or more properties defining the material's appearance.</div>
25
25
<div>
26
26
color — geometry color in hexadecimal. Default is 0xffffff.<br/>
27
+
map — Sets the texture map. Default is null <br/>
28
+
lightMap — Set light map. Default is null.<br/>
29
+
specularMap — Set specular map. Default is null.<br/>
30
+
alphaMap — Set alpha map. Default is null.<br/>
31
+
envMap — Set env map. Default is null.<br/>
32
+
fog — Define whether the material color is affected by global fog settings. Default is true.<br/>
33
+
shading — Define shading type. Default is THREE.SmoothShading.<br/>
27
34
wireframe — render geometry as wireframe. Default is false.<br/>
28
35
wireframeLinewidth — Line thickness. Default is 1.<br/>
29
36
wireframeLinecap — Define appearance of line ends. Default is 'round'.<br/>
30
37
wireframeLinejoin — Define appearance of line joints. Default is 'round'.<br/>
31
-
shading — Define shading type. Default is THREE.SmoothShading.<br/>
32
38
vertexColors — Define how the vertices gets colored. Default is THREE.NoColors.<br/>
33
-
fog — Define whether the material color is affected by global fog settings. Default is true.<br/>
34
-
lightMap — Set light map. Default is null.<br/>
35
-
specularMap — Set specular map. Default is null.<br/>
36
-
alphaMap — Set alpha map. Default is null.<br/>
37
-
envMap — Set env map. Default is null.<br/>
38
39
skinning — Define whether the material uses skinning. Default is false.<br/>
39
40
morphTargets — Define whether the material uses morphTargets. Default is false.
40
41
</div>
@@ -44,6 +45,26 @@ <h2>Properties</h2>
44
45
<h3>[property:Integer color]</h3>
45
46
<div>Sets the color of the geometry. Default is 0xffffff.</div>
46
47
48
+
<h3>[property:Texture lightMap]</h3>
49
+
<div>Set light map. Default is null.</div>
50
+
51
+
<h3>[property:Texture specularMap]</h3>
52
+
<div>Set specular map. Default is null.</div>
53
+
54
+
<h3>[property:Texture alphaMap]</h3>
55
+
<div>The alpha map is a grayscale texture that controls the opacity across the surface (black: fully transparent; white: fully opaque). Default is null.</div>
56
+
<div>Only the color of the texture is used, ignoring the alpha channel if one exists. For RGB and RGBA textures, the [page:WebGLRenderer WebGL] renderer will use the green channel when sampling this texture due to the extra bit of precision provided for green in DXT-compressed and uncompressed RGB 565 formats. Luminance-only and luminance/alpha textures will also still work as expected.</div>
57
+
58
+
<h3>[property:TextureCube envMap]</h3>
59
+
<div>Set env map. Default is null.</div>
60
+
61
+
<h3>[property:Boolean fog]</h3>
62
+
<div>Define whether the material color is affected by global fog settings.</div>
63
+
<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>
64
+
65
+
<h3>[property:String shading]</h3>
66
+
<div>Define shading type. Default is THREE.SmoothShading.</div>
67
+
47
68
<h3>[property:Boolean wireframe]</h3>
48
69
<div>Render geometry as wireframe. Default is false (i.e. render as flat polygons).</div>
<div>Define appearance of line joints. Possible values are "round", "bevel" and "miter". Default is 'round'.</div>
60
81
<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>
61
82
62
-
<h3>[property:String shading]</h3>
63
-
<div>Define shading type. Default is THREE.SmoothShading.</div>
64
-
65
83
<h3>[property:Integer vertexColors]</h3>
66
84
<div>Define how the vertices gets colored. Possible values are THREE.NoColors, THREE.FaceColors and THREE.VertexColors. Default is THREE.NoColors.</div>
67
85
<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>
68
86
69
-
<h3>[property:Boolean fog]</h3>
70
-
<div>Define whether the material color is affected by global fog settings.</div>
71
-
<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>
72
-
73
-
<h3>[property:Texture lightMap]</h3>
74
-
<div>Set light map. Default is null.</div>
75
-
76
-
<h3>[property:Texture specularMap]</h3>
77
-
<div>Set specular map. Default is null.</div>
78
-
79
-
<h3>[property:Texture alphaMap]</h3>
80
-
<div>The alpha map is a grayscale texture that controls the opacity across the surface (black: fully transparent; white: fully opaque). Default is null.</div>
81
-
<div>Only the color of the texture is used, ignoring the alpha channel if one exists. For RGB and RGBA textures, the [page:WebGLRenderer WebGL] renderer will use the green channel when sampling this texture due to the extra bit of precision provided for green in DXT-compressed and uncompressed RGB 565 formats. Luminance-only and luminance/alpha textures will also still work as expected.</div>
82
-
83
-
<h3>[property:TextureCube envMap]</h3>
84
-
<div>Set env map. Default is null.</div>
85
-
86
87
<h3>[property:Boolean skinning]</h3>
87
88
<div>Define whether the material uses skinning. Default is false.</div>
Emissive (light) color of the material, essentially a solid color unaffected by other lighting. Default is black.<br/>
43
60
</div>
44
-
45
-
<h3>[property:Integer shading]</h3>
46
-
<div>How the triangles of a curved surface are rendered: as a smooth surface, as flat separate facets, or no shading at all.</div>
47
-
48
-
<div>Options are [page:Materials THREE.SmoothShading] (default), [page:Materials THREE.FlatShading], [page:Materials THREE.NoShading].</div>
49
-
50
-
<h3>[property:Boolean wireframe]</h3>
51
-
<div>Whether the triangles' edges are displayed instead of surfaces. Default is *false*.</div>
52
61
53
-
<h3>[property:Float wireframeLinewidth]</h3>
54
-
<div>Line thickness for wireframe mode. Default is *1.0*.</div>
55
-
<div>Due to limitations in the <ahref="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>
56
-
57
-
<h3>[property:String wireframeLinecap]</h3>
58
-
<div>Define appearance of line ends. Possible values are "butt", "round" and "square". Default is 'round'.</div>
59
-
<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>
60
-
61
-
<h3>[property:String wireframeLinejoin]</h3>
62
-
<div>Define appearance of line joints. Possible values are "round", "bevel" and "miter". Default is 'round'.</div>
63
-
<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>
64
-
65
-
<h3>[property:Integer vertexColors]</h3>
66
-
<div>Define how the vertices gets colored. Possible values are THREE.NoColors, THREE.FaceColors and THREE.VertexColors. Default is THREE.NoColors.</div>
67
-
<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>
62
+
<h3>[property:boolean wrapAround]</h3>
63
+
<div>
64
+
Define whether the diffuse lighting wraps around the model or not. This option adds a little more (tintable) light
65
+
onto the side of the object in relation to a light.
66
+
</div>
68
67
69
-
<h3>[property:Boolean fog]</h3>
70
-
<div>Define whether the material color is affected by global fog settings. Default is *true*.</div>
71
-
<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>
68
+
<h3>[property:Vector3 wrapRGB]</h3>
69
+
<div>
70
+
Decide how much of the wrap around values get used if the wrapAround option is set. The x, y, z values correspond
71
+
to the r, g, b values respectively. The typical range is of each is from 0 to 1. For example setting all of the
72
+
vector values to 0.5 will add a moderate amount of light to the side of the model. Changing *b* to 1 will
73
+
tint the light on the side to be more blue. Defaults to *(1,1,1)*.
74
+
</div>
72
75
73
76
<h3>[property:Texture map]</h3>
74
77
<div>Set color texture map. Default is null.</div>
<div>How to combine the result of the surface's color with the environment map, if any.</div>
94
+
95
+
<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>
96
+
89
97
<h3>[property:Float reflectivity]</h3>
90
98
<div>How much the environment map affects the surface; also see "combine".</div>
91
99
92
100
<h3>[property:Float refractionRatio]</h3>
93
101
<div>The index of refraction for an environment map using [page:Textures THREE.CubeRefractionMapping]. Default is *0.98*.</div>
94
102
95
-
<h3>[property:Integer combine]</h3>
96
-
<div>How to combine the result of the surface's color with the environment map, if any.</div>
97
-
98
-
<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>
99
-
103
+
<h3>[property:Boolean fog]</h3>
104
+
<div>Define whether the material color is affected by global fog settings. Default is *true*.</div>
105
+
<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>
106
+
107
+
<h3>[property:Integer shading]</h3>
108
+
<div>How the triangles of a curved surface are rendered: as a smooth surface, as flat separate facets, or no shading at all.</div>
109
+
110
+
<div>Options are [page:Materials THREE.SmoothShading] (default), [page:Materials THREE.FlatShading], [page:Materials THREE.NoShading].</div>
111
+
112
+
<h3>[property:Boolean wireframe]</h3>
113
+
<div>Whether the triangles' edges are displayed instead of surfaces. Default is *false*.</div>
114
+
115
+
<h3>[property:Float wireframeLinewidth]</h3>
116
+
<div>Line thickness for wireframe mode. Default is *1.0*.</div>
117
+
<div>Due to limitations in the <ahref="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>
118
+
119
+
<h3>[property:String wireframeLinecap]</h3>
120
+
<div>Define appearance of line ends. Possible values are "butt", "round" and "square". Default is 'round'.</div>
121
+
<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>
122
+
123
+
<h3>[property:String wireframeLinejoin]</h3>
124
+
<div>Define appearance of line joints. Possible values are "round", "bevel" and "miter". Default is 'round'.</div>
125
+
<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>
126
+
127
+
<h3>[property:Integer vertexColors]</h3>
128
+
<div>Define how the vertices gets colored. Possible values are THREE.NoColors, THREE.FaceColors and THREE.VertexColors. Default is THREE.NoColors.</div>
129
+
<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>
130
+
100
131
<h3>[property:Boolean skinning]</h3>
101
132
<div>Define whether the material uses skinning. Default is *false*.</div>
102
133
103
134
<h3>[property:Boolean morphTargets]</h3>
104
135
<div>Define whether the material uses morphTargets. Default is *false*.</div>
105
136
106
-
<h3>[property:boolean wrapAround]</h3>
107
-
<div>
108
-
Define whether the diffuse lighting wraps around the model or not. This option adds a little more (tintable) light
109
-
onto the side of the object in relation to a light.
110
-
</div>
111
-
112
-
<h3>[property:Vector3 wrapRGB]</h3>
113
-
<div>
114
-
Decide how much of the wrap around values get used if the wrapAround option is set. The x, y, z values correspond
115
-
to the r, g, b values respectively. The typical range is of each is from 0 to 1. For example setting all of the
116
-
vector values to 0.5 will add a moderate amount of light to the side of the model. Changing *b* to 1 will
117
-
tint the light on the side to be more blue. Defaults to *(1,1,1)*.
118
-
</div>
119
-
120
137
<h3>[property:boolean morphNormals]</h3>
121
138
<div>
122
139
Defines whether the material uses morphNormals. Set as true to pass morphNormal attributes from the [page:Geometry]
0 commit comments