ParticleBasicMaterial.html 2.3 KB

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