Skip to content

Commit ab9057e

Browse files
committed
change spelling from reileigh to rayleigh in code
- this depends on the [superframe](https://github.com/supermedium/superframe) library being updated. See PR supermedium/superframe#297
1 parent e5bc11e commit ab9057e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Utilizes [a-sun-sky](https://supermedium.com/superframe/components/sun-sky/) and
88
![luminous moon + blue sky + stars](https://i.imgur.com/w6847An.png)
99

1010
# features
11-
- sunrise, daytime, and sunset feature beautiful reileigh scattering colors in the sky
11+
- sunrise, daytime, and sunset feature beautiful rayleigh scattering colors in the sky
1212
- `fog` component creates feeling of darkness after sunset, that then retreats as stars slowly fade into view
13-
- moon rises and sets, creating a blue reileigh glow in the sky
13+
- moon rises and sets, creating a blue rayleigh glow in the sky
1414
- stars fade out, and then fog again comes in just to create a feeling of shadows retreating at dawn.
1515

1616
# demos
@@ -44,7 +44,7 @@ then add sky to your scene:
4444
<a-scene>
4545
<a-sun-sky
4646
id="sun"
47-
material="side: back; reileigh: 1; luminance: 1;"
47+
material="side: back; rayleigh: 1; luminance: 1;"
4848
super-sky="cycleDuration:.1; moonCycle:true; showStars:true;";
4949
></a-sun-sky>
5050
</a-scene>
@@ -59,7 +59,7 @@ see super-sky.js schema for options. comments explain their use.
5959
- enable better control of sun/moon trajectory through sky
6060
- code could be cleaner and more well tested--it's really something I shared as soon as I threw it together and got it working. "Better rough than never."
6161
- slightly rotate world while stars are in sky to create star movement
62-
- fix sudden shift from blue-darkness sky to grey-darkness sky after moonset resulting from reileigh and/or luminance shift
62+
- fix sudden shift from blue-darkness sky to grey-darkness sky after moonset resulting from rayleigh and/or luminance shift
6363
- currently night is 3x the length of day. This would imitate only northern winters/southern summers that have 8 hours of daylight, e.g. 10am to 6pm. ability to tweak this would be desirable.
6464
- moon with phases would be an excellent improvement.
6565

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<a-scene>
1313
<a-sun-sky
1414
id="sun"
15-
material="side: back; reileigh: 1; luminance: 1;"
15+
material="side: back; rayleigh: 1; luminance: 1;"
1616
super-sky="cycleDuration:.1";
1717
></a-sun-sky>
1818
<a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9"></a-box>

super-sky.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ AFRAME.registerComponent('super-sky', {
120120
if (this.data.debug) console.log("switching sun/moon", orbit, 'moon:', this.moon)
121121

122122
this.moon=!this.moon;
123-
this.el.setAttribute('material', 'reileigh', this.moon ? 0.1 : 1);
123+
this.el.setAttribute('material', 'rayleigh', this.moon ? 0.1 : 1);
124124
this.el.setAttribute('material', 'luminance', this.moon ? 1.18 : 1);
125125
this.moonSunSwitchFlag = true;
126126
if (this.moon) {

0 commit comments

Comments
 (0)