Commit Graph

12 Commits

Author SHA1 Message Date
0c829c88c5 fix: eslint errors 2023-02-10 17:28:54 +01:00
6624bfefb0 chore: update config files 2023-02-10 17:22:54 +01:00
2c9a79b76b feat: implement eslint 2023-02-10 17:22:37 +01:00
7efc1842bd feat: set correct sun angle from current time
Thanks ChatGPT for that one!!

How to find the current sun angle from Earth's rotation in javascript?
A hint: Where is the sun shining on the earth at the time I visit the site? I guess the time zone that's closest to noon.

the dayTime variable needs to be from 0 to 1

const d = degToRad(360 / dayTime)
const sunPos = new Vec3(
    Math.cos(d),
    Math.sin(d) * Math.sin(0),
    Math.sin(d) * Math.cos(0)
)
2023-02-10 15:35:36 +01:00
83510bda2d chore: update packages 2023-02-10 15:34:48 +01:00
bea5da5f7c chore: update packages 2023-02-01 15:41:49 +01:00
3127d4786a [chore] Update packages 2023-01-22 21:39:19 +01:00
b76f70a05f Fix eslint error and update svelte related stuff 2023-01-22 21:39:10 +01:00
1143651549 [chore] Update packages and config 2023-01-14 12:35:45 +01:00
6888f9afc5 [chore] Update packages 2023-01-12 20:27:02 +01:00
47ea21569d [chore] Use satisfies syntax for server routes types 2023-01-10 13:02:19 +01:00
25bb949a13 🚧 Switch to monorepo with Turbo 2023-01-10 12:53:42 +01:00