PointsMaterial.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. [page:Material] &rarr;
  12. <h1>[name]</h1>
  13. <div class="desc">The default material used by [page:Points].</div>
  14. <h2>Examples</h2>
  15. <div>
  16. [example:misc_controls_fly misc / controls / fly]<br />
  17. [example:webgl_buffergeometry_drawcalls WebGL / BufferGeometry / drawcalls]<br />
  18. [example:webgl_buffergeometry_points WebGL / BufferGeometry / points]<br />
  19. [example:webgl_buffergeometry_points_interleaved WebGL / BufferGeometry / points / interleaved]<br />
  20. [example:webgl_camera WebGL / camera ]<br />
  21. [example:webgl_geometry_convex WebGL / geometry / convex]<br />
  22. [example:webgl_geometry_shapes WebGL / geometry / shapes]<br />
  23. [example:webgl_interactive_raycasting_points WebGL / interactive / raycasting / points]<br />
  24. [example:webgl_multiple_elements_text WebGL / multiple / elements / text]<br />
  25. [example:webgl_points_billboards WebGL / points / billboards]<br />
  26. [example:webgl_points_billboards_colors WebGL / points / billboards / colors]<br />
  27. [example:webgl_points_dynamic WebGL / points / dynamic]<br />
  28. [example:webgl_points_random WebGL / points / random]<br />
  29. [example:webgl_points_sprites WebGL / points / sprites]<br />
  30. [example:webgl_trails WebGL / trails]
  31. </div>
  32. <h3>[name]( [page:Object parameters] )</h3>
  33. <div>
  34. [page:Object parameters] - (optional) an object with one or more properties defining the material's appearance.
  35. Any property of the material (including any property inherited from [page:Material]) can be passed in here.<br /><br />
  36. The exception is the property [page:Hexadecimal color], which can be passed in as a hexadecimal
  37. string and is *0xffffff* (white) by default. [page:Color.set]( color ) is called internally.
  38. </div>
  39. <h2>Properties</h2>
  40. <div>See the base [page:Material] class for common properties.</div>
  41. <h3>[property:Color color]</h3>
  42. <div>[page:Color] of the material, by default set to white (0xffffff).</div>
  43. <h3>[property:Boolean isPointsMaterial]</h3>
  44. <div>
  45. Used to check whether this or derived classes are points materials. Default is *true*.<br /><br />
  46. You should not change this, as it used internally for optimisation.
  47. </div>
  48. <h3>[property:Boolean lights]</h3>
  49. <div>Whether the material is affected by lights. Default is *false*.</div>
  50. <h3>[property:Texture map]</h3>
  51. <div>Sets the color of the points using data from a [page:Texture].</div>
  52. <h3>[property:Number size]</h3>
  53. <div>Sets the size of the points. Default is 1.0.</div>
  54. <h3>[property:Boolean sizeAttenuation]</h3>
  55. <div>Specify whether points' size will get smaller with the distance. Default is true.</div>
  56. <h2>Methods</h2>
  57. <h2>Source</h2>
  58. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  59. </body>
  60. </html>