All Projects → DougReeder → Aframe Simple Sun Sky

DougReeder / Aframe Simple Sun Sky

Licence: mit
An A-Frame WebVR sky primitive using a simple (and fast) gradient away from the sun

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Aframe Simple Sun Sky

aframe-xylayout
Flexbox like 2D layout + UI components for A-Frame.
Stars: ✭ 23 (+64.29%)
Mutual labels:  vr, webvr
Learn-WebVR
Resources to Learn WebVR 😎
Stars: ✭ 13 (-7.14%)
Mutual labels:  vr, webvr
aframe-registry
[DISCONTINUED] Curated collection of community A-Frame components.
Stars: ✭ 76 (+442.86%)
Mutual labels:  vr, webvr
cardboard-vr-display
A JavaScript implementation of a WebVR 1.1 VRDisplay
Stars: ✭ 84 (+500%)
Mutual labels:  vr, webvr
Ideaspace
😎 Create interactive 3D and VR web experiences for desktop, mobile & VR devices
Stars: ✭ 344 (+2357.14%)
Mutual labels:  vr, webvr
zeo
Multiplayer WebVR worlds made out of npm modules.
Stars: ✭ 47 (+235.71%)
Mutual labels:  vr, webvr
embedding
Embedding data into immersive environments
Stars: ✭ 26 (+85.71%)
Mutual labels:  vr, webvr
aframe-react
React library for A-frame
Stars: ✭ 58 (+314.29%)
Mutual labels:  vr, webvr
3dio Js
JavaScript toolkit for interior apps
Stars: ✭ 255 (+1721.43%)
Mutual labels:  vr, webvr
pacman
Pacman WebVR using Aframe
Stars: ✭ 20 (+42.86%)
Mutual labels:  vr, webvr
webvrrocks
Your guide to Virtual Reality in the browser.
Stars: ✭ 116 (+728.57%)
Mutual labels:  vr, webvr
Aframe Inspector
🔍 Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
Stars: ✭ 469 (+3250%)
Mutual labels:  vr, webvr
spacesvr
A standardized reality for the future of the 3D Web.
Stars: ✭ 135 (+864.29%)
Mutual labels:  vr, webvr
aframe-chromakey-material
A chromakey material for green screening in A-Frame. Perfect for blockbuster hollywood effects in VR! 🤗🎬💚
Stars: ✭ 53 (+278.57%)
Mutual labels:  vr, webvr
belajar-aframe
Belajar A-Frame (WebVR) - Virtual Reality on the Web
Stars: ✭ 14 (+0%)
Mutual labels:  vr, webvr
aframe-mirror-component
Mirror effect material that works with snapshots of the scene for A-Frame
Stars: ✭ 29 (+107.14%)
Mutual labels:  vr, webvr
lvr
👓 Augmented Reality for everyone - Out of the world experiences
Stars: ✭ 92 (+557.14%)
Mutual labels:  vr, webvr
home-space
Startpage and WebXR home
Stars: ✭ 43 (+207.14%)
Mutual labels:  vr, webvr
WebVRExamples
yonet.github.io/webvrexamples/examples/cubes.html
Stars: ✭ 19 (+35.71%)
Mutual labels:  vr, webvr
Mxreality.js
普通全景视频,直播全景视频,hls和flv全景VR视频直播,全景图片、VR模型、多终端自适应
Stars: ✭ 386 (+2657.14%)
Mutual labels:  vr, webvr

aframe-simple-sun-sky

An A-Frame WebVR sky primitive using a simple (and fast) gradient away from the sun. Saves your GPU power for the terrain! Does not include any directional lighting. You may need to set sun-position on other elements to match.

sample screenshot

live example scene

When the sun goes below the horizon, you might want to switch to a different sky.

Include using

<script src="https://unpkg.com/[email protected]^1.2.2/simple-sun-sky.js"></script>

Basic use:

<a-simple-sun-sky sun-position="1 0.1 0"></a-simple-sun-sky>

The sky fades to fog-color near the horizon. If you use fog in your scene, set fog-color the same or very similar to your fog. If you don't use fog, set fog-color to a grayish variant of your sky colors. The special value 'none' will disable the horizon effect, for those rare worlds that are all sky and no land.

<a-simple-sun-sky sun-position="1 0.1 0" fog-color="#5681ac"></a-simple-sun-sky>

Setting the colors of the sky:

<a-simple-sun-sky sun-position="-1 1 -1" light-color="#87cefa" dark-color="#00bfff" fog-color="#74d2fa"></a-simple-sun-sky>

Adding lights so shadows work correctly:

<a-simple-sun-sky sun-position="0.7 0.4 -1"></a-simple-sun-sky>
<a-entity light="type: ambient; color: #BBB"></a-entity>
<a-entity light="type: directional; color: #FFF; intensity: 0.6" position="0.7 0.4 -1"></a-entity>

Increasing radius (default 5000) of sky sphere (increase the far parameter of the camera, too):

<a-simple-sun-sky sun-position="1 0.1 0" radius="30000"></a-simple-sun-sky>

You can change any of the colors on the fly, except changing fog to or from 'none'.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].