SpriteMaterial.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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">A material for a [page:Sprite].</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]( [page:Object parameters] )</h3>
  15. <div>
  16. parameters -- an object defining the the default properties
  17. </div>
  18. <div>
  19. color - color of the sprite<br/>
  20. map - the texture map<br/>
  21. rotation - the rotation of the sprite<br/>
  22. fog - whether or not to use the scene fog<br/>
  23. </div>
  24. <h2>Properties</h2>
  25. <h3>[property:Color color]</h3>
  26. <div>The texture is multiplied by this color. The default is 0xffffff</div>
  27. <h3>[property:Texture map]</h3>
  28. <div>The texture map. Default is null.</div>
  29. <h3>[property:Radians rotation]</h3>
  30. <div>The rotation of the sprite in radians. Default is 0.</div>
  31. <h3>[property:boolean fog]</h3>
  32. <div>Whether or not this material affected by the scene's fog. Default is false</div>
  33. <h2>Source</h2>
  34. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  35. </body>
  36. </html>