Glow component for A-Frame to add on your entities.
<a-entity glow></entity>
To turn it off:
<a-entity glow="enabled:false"></entity>
Properties:
<a-entity glow="c:0.3;"></entity>
<a-entity glow="p:1.1;"></entity>
<a-entity glow="color: #FF00FF;"></entity>
Adjust the scale of the glow.
<a-entity glow="scale: 1.3; color: #FF00FF;"></entity>
Change the type of glow.
<a-entity glow="side: back; scale: 1.3; color: #FF00FF; c: 0.3; p: 3;"></entity>
First make sure you have Node installed.
On Mac OS X, it's recommended to use Homebrew to install Node + npm:
brew install node
To install the Node dependencies:
npm install
To serve the site from a simple Node development server:
npm start
Then launch the site from your favourite browser:
If you wish to serve the site from a different port:
PORT=8000 npm start
- 1.0.1 - Fix glow position when placed inside another entity.
Based on the work of @stemkoski for ThreeJS: http://stemkoski.github.io/Three.js/Shader-Glow.html
Distributed under an MIT License.