Coder Social home page Coder Social logo

triptych / aframe-fireball-component Goto Github PK

View Code? Open in Web Editor NEW

This project forked from urish/aframe-fireball-component

0.0 3.0 0.0 284 KB

Fireball component for A-Frame

Home Page: https://urish.github.io/aframe-fireball-component/

HTML 4.64% JavaScript 95.36%

aframe-fireball-component's Introduction

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"></a-sphere>

See index.html for a complete example.

Parameters

Parameter Default Description
brightness 1.5 Brightness level of the fireball
color '#ffaa55' Fireball color
opacity 1.0 Fireball opacity
scale 1.0 Scaling of the generated texture. Higher values will result in more details

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.

aframe-fireball-component's People

Contributors

urish avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.