Skip to content

zcanter/aframe-gradient-sky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aframe-gradient-sky

A gradient sky component for the A-Frame WebVR Framework.

Check out the: Gradient Sky Example

A-Frame Gradient Sky

Usage

Browser Installation

Install and use by directly including the browser file:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.3.0/aframe.min.js"></script>
  <script src="https://cdn.rawgit.com/zcanter/aframe-gradient-sky/master/dist/gradientsky.min.js"></script>
</head>

<body>
  <a-scene>
    <a-gradient-sky material="shader: gradient; topColor: 255 0 0; bottomColor: 0 121 255;"></a-gradient-sky>
  </a-scene>
</body>

NPM Installation

Install via NPM:

npm install aframe-gradient-sky

Then register and use.

require('aframe');
require('aframe-gradient-sky');

About

A-Frame gradient sky component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published