mayognaise / aframe-gif-shader

A shader to display GIF for A-Frame VR.
https://mayognaise.github.io/aframe-gif-shader/basic
MIT License
107 stars 44 forks source link

Transparent gif showing all frames #13

Open Kershawj opened 5 years ago

Kershawj commented 5 years ago

@mayognaise The clearCanvas function was not being called on stepping to next frame, so instead of this.clearCanvas(); and then this.draw(); the clearCanvas call was missed in the "nextFrame" function. Adding this in obviously did the job. Fantastic work by the way, thanks.