New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

aframe-glow

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aframe-glow

Glow component for AFrame (https://aframe.io).

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
7
75%
Maintainers
1
Weekly downloads
 
Created
Source

A-Frame Glow Component

Glow component for A-Frame to add on your entities.

Demo

Alt text

Live demo

Getting Started

<a-entity glow></entity>

To turn it off:

<a-entity glow="enabled:false"></entity>

Properties:

C (default: 1, min: 0, max: 1)

<a-entity glow="c:0.3;"></entity>

P (default: 1.4, min: 0, max: 6)

<a-entity glow="p:1.1;"></entity>

Color (default: #FFFF00)

<a-entity glow="color: #FF00FF;"></entity>

Scale (default: 2)

Adjust the scale of the glow.

<a-entity glow="scale: 1.3; color: #FF00FF;"></entity>

Side (default: front, values: front/back)

Change the type of glow.

<a-entity glow="side: back; scale: 1.3; color: #FF00FF; c: 0.3; p: 3;"></entity>

Want to make some changes to it?

Installation

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

Local Development

To serve the site from a simple Node development server:

npm start

Then launch the site from your favourite browser:

http://localhost:3000/

If you wish to serve the site from a different port:

PORT=8000 npm start

Change log

  • 1.0.1 - Fix glow position when placed inside another entity.

Acknowledgement

Based on the work of @stemkoski for ThreeJS: http://stemkoski.github.io/Three.js/Shader-Glow.html

License

Distributed under an MIT License.

Keywords

aframe

FAQs

Package last updated on 07 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts