aframe-sprite-component
An implementation of the Sprite primitive from ThreeJS – a bitmap image always facing the camera – for A-Frame.
Have a look at the examples
API
Property | Description | Default Value |
---|---|---|
src | String – the name of the image to use in the SpriteMaterial | '' |
resize | String – resize vector to scale the Sprite | '1 1 1' |
Installation
Browser
Install and use by directly including the browser files:
A-Frame using a Sprite
npm
Install via npm:
npm install aframe-sprite-component
Then register and use.
;;