SpriteMaterial.html 1.3 KB

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