File: Sprite.md | Updated: 11/15/2025
A sprite is a plane that always faces towards the camera, generally with a partially transparent texture applied.
Sprites do not cast shadows, setting Object3D#castShadow to true will have no effect.
const map = new THREE.TextureLoader().load( 'sprite.png' );
const material = new THREE.SpriteMaterial( { map: map } );
const sprite = new THREE.Sprite( material );
scene.add( sprite );
Constructs a new sprite.
material | The sprite material.
---|---
The sprite's anchor point, and the point around which the sprite rotates. A value of (0.5, 0.5) corresponds to the midpoint of the sprite. A value of (0, 0) corresponds to the lower left corner of the sprite.
Default is (0.5,0.5).
The number of instances of this sprite. Can only be used with WebGPURenderer.
Default is 1.
The sprite geometry.
This flag can be used for type testing.
Default is true.
The sprite material.
Computes intersection points between a casted ray and this sprite.
raycaster | The raycaster.
---|---
intersects | The target array that holds the intersection points.
Overrides: Object3D#raycast