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">The default material used by [page:ParticleSystem particle] systems.</div>
|
---|
15 |
|
---|
16 |
|
---|
17 | <h2>Constructor</h2>
|
---|
18 |
|
---|
19 | <h3>[name]( [page:Object parameters] )</h3>
|
---|
20 |
|
---|
21 | <div>parameters is an object with one or more properties defining the material's appearance.</div>
|
---|
22 |
|
---|
23 | <div>
|
---|
24 | color â Particle color in hexadecimal. Default is 0xffffff.<br />
|
---|
25 | map â a [page:Texture texture]. Default is null. // TODO: specify what is its purpose<br />
|
---|
26 | size â Define size of particles. Default is 1.0.<br />
|
---|
27 | sizeAttenuation â Enable/disable size attenuation with distance.<br />
|
---|
28 | vertexColors â Define whether the material uses vertex colors, or not. Default is false.<br />
|
---|
29 | fog â Define whether the material color is affected by global fog settings. Default is true.
|
---|
30 | </div>
|
---|
31 |
|
---|
32 | <h2>Properties</h2>
|
---|
33 |
|
---|
34 | <h3>.[page:Number color]</h3>
|
---|
35 |
|
---|
36 | <div>Sets the color of the particles. Default is 0xffffff.</div>
|
---|
37 |
|
---|
38 | <h3>.[page:Texture map]</h3>
|
---|
39 |
|
---|
40 | <div>Sets the color of the particles using data from a texture (?).</div>
|
---|
41 |
|
---|
42 | <h3>.[page:Number size]</h3>
|
---|
43 |
|
---|
44 | <div>Sets the size of the particles. Default is 1.0.</div>
|
---|
45 |
|
---|
46 | <h3>.[page:Boolean sizeAttenuation]</h3>
|
---|
47 |
|
---|
48 | <div>Specify whether particles' size will get smaller with the distance. Default is true.</div>
|
---|
49 |
|
---|
50 | <h3>.[page:Boolean vertexColors]</h3>
|
---|
51 |
|
---|
52 | <h3>.[page:Boolean fog]</h3>
|
---|
53 | <div>Define whether the material color is affected by global fog settings.</div>
|
---|
54 | <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>
|
---|
55 |
|
---|
56 |
|
---|
57 | <h2>Methods</h2>
|
---|
58 |
|
---|
59 | <h2>Source</h2>
|
---|
60 |
|
---|
61 | [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
---|
62 | </body>
|
---|
63 | </html>
|
---|