Skip to content

jor3l/aframe-texture-animator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

aframe-texture-animator

Texture Animation component for A-Frame

Example Usage

<a-plane width="20" height="20" position="0 1 -15" 
                  texture-animator="htiles:4; vtiles:2; tiles:8; src:assets/sprite.png; dur:5"></a-plane>

Params

  • src: Sprite image to load into the mesh
  • htiles: number of horizontal tiles in the sprite
  • vtiles: number of vertical tiles in the sprite
  • tiles: total amount of tiles
  • dur: tile duration, lower values gives a faster animation

About

Texture Animation component for AFrame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published