A shader to display GIF for A-Frame VR.
npm install aframe-gif-shaderA gif shader for A-Frame VR. Inspired by @gtk2k's awesome sample.
To control, please use aframe-gif-component.
Now transparent gif are supported! 🎉🎊
- Basic material's properties are supported.
- The property is pretty much same as flat shader.
| Property | Description | Default Value |
| -------- | ----------- | ------------- |
|src|image url. @see Textures|null|
|autoplay|play automatecally once it's ready|true|
For refference, please check the following links:
- Material
- Textures
- Flat Shading Model
Install and use by directly including the browser files:
``html
$3
Install via NPM:
`bash
npm i -D aframe-gif-shader
`Then register and use.
`js
import 'aframe'
import 'aframe-gif-shader'
``Thank you so much 🙏
- @UXVirtual
- @urish
- @pablodiegoss
- @margauxdivernois
- @Danpollak