[page:Object3D] →
[name]
A sprite is a plane in an 3d scene which faces always towards the camera.
Sprites do not cast shadows, setting castShadow = true
will have no effect.
Example
var map = new THREE.TextureLoader().load( "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]()
Returns a clone of this Sprite object and its descendants.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]