[page:Object3D] →
[name]
A sprite is a plane in an 3d scene which faces always towards the camera.
Example
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 );
Constructor
[name]([page:Material material])
material — An instance of [page:Material] (optional).
This creates a new sprite with an specific material.
Properties
[property:SpriteMaterial material]
An instance of [page:Material], defining the object's appearance. Default is a [page:SpriteMaterial] which is a white plane.
-
Methods
[method:Sprite clone]()
This creates a new clone of the sprite.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]