1.2.2 • Published 7 years ago

aframe-fireball-component v1.2.2

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

A-Frame Fireball Component

Firebase Shader in Action

Online Demo

Installation

Add the following line to your html file, just after loading A-Frame:

<script src="https://rawgit.com/urish/aframe-fireball-component/master/index.js"></script>

You can also get this component through npm:

npm install --save aframe-fireball-component

Usage

Basic usage:

<a-sphere position="0 1 -5" fireball></a-sphere>

Advanced usage - specifying properties:

<a-sphere position="2.5 1 -5" radius="1.25" fireball="color: red; brightness: 2; scale: 2.5; speed: 0.2"></a-sphere>

See index.html for a complete example.

Parameters

ParameterDefaultDescription
brightness1.5Brightness level of the fireball
color'#ffaa55'Fireball color
opacity1.0Fireball opacity
scale1.0Scaling of the generated texture. Higher values will result in more details
speed0.1Animation speed of the generated texture. Higher values will result in faster animation

License

Copyright (C) 2017, Uri Shaked. Distributed under the MIT license. Based on http://shaderfrog.com/view/76 and http://alteredqualia.com/three/examples/webgl_shader_fireball.html

Original copyright notice: Copyright (C) 2011 Ashima Arts. All rights reserved. Distributed under the MIT License.

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago