From 10df59811cea725e5e477f23d23a29a1f06c091d Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Tue, 20 Sep 2016 00:34:38 -0700 Subject: [PATCH] [sun-sky] add sunSky shader and --- README.md | 2 + components/animation/index.html | 2 +- components/audio-visualizer/index.html | 2 +- components/broadcast/index.html | 2 +- components/entity-generator/index.html | 2 +- components/event-set/index.html | 2 +- components/firebase/index.html | 2 +- components/layout/index.html | 2 +- components/look-at/index.html | 2 +- components/mountain/index.html | 2 +- components/randomizer/index.html | 2 +- components/redux/index.html | 2 +- components/sun-sky/README.md | 36 ++++ components/sun-sky/examples/basic/index.html | 13 ++ components/sun-sky/examples/build.js | 34 ++++ components/sun-sky/examples/main.js | 2 + .../sun-sky/examples/sun-position/index.html | 47 +++++ components/sun-sky/index.html | 67 ++++++++ components/sun-sky/index.js | 39 +++++ components/sun-sky/package.json | 31 ++++ components/sun-sky/shaders/fragment.glsl | 161 ++++++++++++++++++ components/sun-sky/shaders/vertex.glsl | 7 + components/template/examples/build.js | 6 +- components/template/index.html | 2 +- components/text/examples/build.js | 4 +- components/text/index.html | 2 +- index.html | 4 + index.js | 1 + package.json | 4 +- site/templates/component.html | 2 +- webpack-dev.config.js | 3 + 31 files changed, 469 insertions(+), 20 deletions(-) create mode 100644 components/sun-sky/README.md create mode 100644 components/sun-sky/examples/basic/index.html create mode 100644 components/sun-sky/examples/build.js create mode 100644 components/sun-sky/examples/main.js create mode 100644 components/sun-sky/examples/sun-position/index.html create mode 100644 components/sun-sky/index.html create mode 100755 components/sun-sky/index.js create mode 100644 components/sun-sky/package.json create mode 100644 components/sun-sky/shaders/fragment.glsl create mode 100644 components/sun-sky/shaders/vertex.glsl diff --git a/README.md b/README.md index f1de329b..73533390 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Kevin's collection of A-Frame components and scenes. - [mountain](https:/github.com/ngokevin/kframe/tree/master/components/mountain/) - Mountain terrain in A-Frame using randomly-generated height maps - [randomizer](https:/github.com/ngokevin/kframe/tree/master/components/randomizer/) - Randomize color, position, rotation, and scale in A-Frame - [redux](https:/github.com/ngokevin/kframe/tree/master/components/redux/) - Hook in Redux reducers, data bindings, and action dispatches for A-Frame +- [sun-sky](https:/github.com/ngokevin/kframe/tree/master/components/sun-sky/) - Gradient sky with adjustable sun in A-Frame - [template](https:/github.com/ngokevin/kframe/tree/master/components/template/) - Encapsulate groups of entities, use templating engines, and do string interpolations in A-Frame - [text](https:/github.com/ngokevin/kframe/tree/master/components/text/) - Geometry-based text in A-Frame @@ -35,6 +36,7 @@ K-Frame bundles some components together to `kframe.js` for convenience: - look-at - mountain - randomizer +- sun-sky - template - text diff --git a/components/animation/index.html b/components/animation/index.html index dfab15a9..9855bf76 100644 --- a/components/animation/index.html +++ b/components/animation/index.html @@ -1,6 +1,6 @@ - A-Frame Component + A-Frame animation Component + + +

sun-sky Component for A-Frame

+ +

Gradient sky with adjustable sun in A-Frame

+ +

Examples

+ + + +

+ « Back to K-Frame +

+ + + + + + + +