Skip to content

Commit

Permalink
feat: batch weather conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceh121 committed Dec 31, 2023
1 parent 02880a9 commit ac06fda
Show file tree
Hide file tree
Showing 2 changed files with 208 additions and 188 deletions.
320 changes: 150 additions & 170 deletions android/assets/skies.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,5 @@
{
"normal": {
"sunColor": {
"0.75": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"0.875": {
"r": 0.439216,
"g": 0.090196,
"b": 0.0,
"a": 0.0
},
"0.0": {
"r": 1.0,
"g": 1.0,
"b": 0.109804,
"a": 0.0
},
"0.125": {
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 0.0
},
"0.25": {
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 0.0
},
"0.375": {
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 0.0
},
"0.5": {
"r": 0.486275,
"g": 0.266667,
"b": 0.113725,
"a": 0.0
},
"0.625": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
}
},
"sunLightColor": {
"0.75": {
"r": 0.156863,
Expand Down Expand Up @@ -150,6 +100,156 @@
"a": 0.0
}
},
"galaxyColor": {
"0.75": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.2
},
"0.875": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.151
},
"0.0": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.192
},
"0.125": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.151
},
"0.2476852": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.11
},
"0.375": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.226
},
"0.5": {
"r": 0.5,
"g": 0.5,
"b": 0.5,
"a": 0.075
},
"0.625": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.349
}
},
"starsColor": {
"0.75": {
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 1.0
},
"0.875": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"0.0": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"0.125": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"0.25": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"0.375": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"0.5": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"0.625": {
"r": 0.784314,
"g": 0.784314,
"b": 0.784314,
"a": 0.0
}
},
"sunColor": {
"0.75": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"0.875": {
"r": 0.439216,
"g": 0.090196,
"b": 0.0,
"a": 0.0
},
"0.0": {
"r": 1.0,
"g": 1.0,
"b": 0.109804,
"a": 0.0
},
"0.125": {
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 0.0
},
"0.25": {
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 0.0
},
"0.375": {
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 0.0
},
"0.5": {
"r": 0.486275,
"g": 0.266667,
"b": 0.113725,
"a": 0.0
},
"0.625": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
}
},
"skyTopColor": {
"0.0": {
"r": 0.16470589,
Expand Down Expand Up @@ -299,126 +399,6 @@
"b": 0.08627451,
"a": 1.0
}
},
"sunShineColor": {
"0.375": {
"r": 0,
"g": 0,
"b": 0,
"a": 0
},
"0.5": {
"r": 0.949,
"g": 0.851,
"b": 0.263,
"a": 1
},
"0.625": {
"r": 0,
"g": 0,
"b": 0,
"a": 0
}
},
"starsColor": {
"0.75": {
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 1.0
},
"0.875": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"0.0": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"0.125": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"0.25": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"0.375": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"0.5": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"0.625": {
"r": 0.784314,
"g": 0.784314,
"b": 0.784314,
"a": 0.0
}
},
"galaxyColor": {
"0.75": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.2
},
"0.875": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.151
},
"0.0": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.192
},
"0.125": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.151
},
"0.2476852": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.11
},
"0.375": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.226
},
"0.5": {
"r": 0.5,
"g": 0.5,
"b": 0.5,
"a": 0.075
},
"0.625": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.349
}
}
}
}
Loading

0 comments on commit ac06fda

Please sign in to comment.