|
1 | | -<!DOCTYPE html> |
2 | | -<html lang="en"> |
3 | | - <head> |
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
4 | 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:Object3D] → |
12 | | - |
13 | | - <h1>[name]</h1> |
14 | | - |
15 | | - <div class="desc">A sprite is a plane in an 3d scene which faces always towards the camera. </div> |
16 | | - |
17 | | - <h2>Example</h2> |
18 | | - |
19 | | - <code> |
20 | | - var map = new THREE.TextureLoader().load( "sprite.png" ); |
21 | | - var material = new THREE.SpriteMaterial( { map: map, color: 0xffffff, fog: true } ); |
22 | | - var sprite = new THREE.Sprite( material ); |
23 | | - scene.add( sprite ); |
24 | | - </code> |
25 | | - |
26 | | - |
27 | | - <h2>Constructor</h2> |
28 | | - |
29 | | - <h3>[name]([page:Material material])</h3> |
30 | | - <div> |
31 | | - material — An instance of [page:Material] (optional). |
32 | | - </div> |
33 | | - <div> |
34 | | - This creates a new sprite with an specific material. |
35 | | - </div> |
36 | | - |
37 | | - |
38 | | - <h2>Properties</h2> |
39 | | - |
40 | | - <h3>[property:SpriteMaterial material]</h3> |
41 | | - <div> |
42 | | - An instance of [page:Material], defining the object's appearance. Default is a [page:SpriteMaterial] which is a white plane. |
43 | | - </div> |
44 | | -- |
45 | | - <h2>Methods</h2> |
46 | | - |
47 | | - <h3>[method:Sprite clone]()</h3> |
48 | | - <div> |
49 | | - This creates a new clone of the sprite. |
50 | | - </div> |
51 | | - |
52 | | - <h3>[method:Object3D clone]([page:Object3D object])</h3> |
53 | | - <div> |
54 | | - object -- (optional) Object3D which needs to be cloned. If undefined, clone method will create a new cloned Sprite Object. |
55 | | - </div> |
56 | | - <div> |
57 | | - Clone a Sprite Object. |
58 | | - </div> |
59 | | - |
60 | | - <h2>Source</h2> |
61 | | - |
62 | | - [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] |
63 | | - </body> |
64 | | -</html> |
| 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:Object3D] → |
| 12 | + |
| 13 | + <h1>[name]</h1> |
| 14 | + |
| 15 | + <div class="desc">A sprite is a plane in an 3d scene which faces always towards the camera.<br /><br />Sprites do not cast shadows, setting <code>castShadow = true</code> will have no effect.</div> |
| 16 | + |
| 17 | + <h2>Example</h2> |
| 18 | + |
| 19 | + <code> |
| 20 | + var map = new THREE.TextureLoader().load( "sprite.png" ); |
| 21 | + var material = new THREE.SpriteMaterial( { map: map, color: 0xffffff, fog: true } ); |
| 22 | + var sprite = new THREE.Sprite( material ); |
| 23 | + scene.add( sprite ); |
| 24 | + </code> |
| 25 | + |
| 26 | + |
| 27 | + <h2>Constructor</h2> |
| 28 | + |
| 29 | + <h3>[name]([page:Material material])</h3> |
| 30 | + <div> |
| 31 | + material — An instance of [page:Material] (optional). |
| 32 | + </div> |
| 33 | + <div> |
| 34 | + This creates a new sprite with an specific material. |
| 35 | + </div> |
| 36 | + |
| 37 | + |
| 38 | + <h2>Properties</h2> |
| 39 | + |
| 40 | + <h3>[property:SpriteMaterial material]</h3> |
| 41 | + <div> |
| 42 | + An instance of [page:Material], defining the object's appearance. Default is a [page:SpriteMaterial] which is a white plane. |
| 43 | + </div> |
| 44 | +- |
| 45 | + <h2>Methods</h2> |
| 46 | + |
| 47 | + <h3>[method:Sprite clone]()</h3> |
| 48 | + <div> |
| 49 | + This creates a new clone of the sprite. |
| 50 | + </div> |
| 51 | + |
| 52 | + <h3>[method:Object3D clone]([page:Object3D object])</h3> |
| 53 | + <div> |
| 54 | + object -- (optional) Object3D which needs to be cloned. If undefined, clone method will create a new cloned Sprite Object. |
| 55 | + </div> |
| 56 | + <div> |
| 57 | + Clone a Sprite Object. |
| 58 | + </div> |
| 59 | + |
| 60 | + <h2>Source</h2> |
| 61 | + |
| 62 | + [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] |
| 63 | + </body> |
| 64 | +</html> |
0 commit comments