提交 7bc11407 编写于 作者: M Mr.doob

Merge branch 'patch-9' of https://github.com/gero3/three.js into dev

......@@ -11,17 +11,26 @@
<h1>[name]</h1>
<div class="desc">todo</div>
<div class="desc">A sprite is an plane in an 3d scene which faces always towards the camera. </div>
<h2>Example</h2>
<code>
var map = THREE.ImageUtils.loadTexture( "sprite.png" );
var material = new THREE.SpriteMaterial( { map: map, color: 0xffffff, fog: true } );
var sprite = new THREE.Sprite( material );
scene.add( sprite );
</code>
<h2>Constructor</h2>
<h3>[name]([page:todo material])</h3>
<h3>[name]([page:Material material])</h3>
<div>
material -- todo
material — An instance of [page:Material] (optional).
</div>
<div>
todo
This creates a new sprite with an specific material.
</div>
......@@ -29,13 +38,15 @@
<h3>.[page:SpriteMaterial material]</h3>
<div>
todo
An instance of [page:Material], defining the object's appearance. Default is a [page:SpriteMaterial] which is a white plane.
</div>
-
<h2>Methods</h2>
<h3>.[page:Float rotation]</h3>
<div>
todo
</div>
<h3>.clone()</h3>
<div>
This creates a new clone of the sprite.
</div>
<h2>Source</h2>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册